Anonymous user
Bitmap/Bresenham's line algorithm: Difference between revisions
m
→version 1: corrected comment label for an END statement.
m (→version 1: labeled the line-segments figure (shape).) |
m (→version 1: corrected comment label for an END statement.) |
||
Line 2,020:
if err2 > -dy then do; err=err-dy; x=x+sx; end
if err2 < dx then do; err=err+dx; y=y+sy; end
end /*
return</lang>
'''output''' when using the default input:
|