Bitmap/Bresenham's line algorithm: Difference between revisions

m
Replaced "initImage" by "newImage" (change in "bitmap.nim" interface.
(Changed "pixel" to "color" and "Pixel" to "Color" to match "bitmap.nim" interface.)
m (Replaced "initImage" by "newImage" (change in "bitmap.nim" interface.)
Line 2,650:
 
when isMainModule:
var img = initImagenewImage(16, 16)
img.fill(White)
img.drawLine((0, 7), (7, 15), Black)
Anonymous user