4 ms·
not connected to this, but i wish i would find a c code example on how to draw a line with a width, without antialias while only setting each pixel once. this s
by Surac 1y ago
not connected to this, but i wish i would find a c code example on how to draw a line with a width, without antialias while only setting each pixel once. this seems to be a real hard problem.
- tubs 1y agoYou want to define a parallelogram or rectangle, turn it into edge equations, then iterate the spans. Alternative is bresenham then for each point iterate a span in the minor axis.
- deleted 1y ago[deleted]
- Avshalom 1y agohttp://homepages.enterprise.net/murphy/thickline/index.html http://homepages.enterprise.net/murphy/thickline/index.html pascal not C but you should be able to translate it pretty easy.