Bitmap/Bresenham's line algorithm: Difference between revisions

m
m (Replaced "initImage" by "newImage" (change in "bitmap.nim" interface.)
Line 2,624:
<lang nim>import bitmap
 
proc drawLine*(img: var Image; p, q: Point; color: Color) =
let
dx = abs(q.x - p.x)
Anonymous user