Bitmap/Bresenham's line algorithm: Difference between revisions
Content added Content deleted
(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 =
img.fill(White)
img.drawLine((0, 7), (7, 15), Black)
|