Anonymous user
Bitmap/Bresenham's line algorithm: Difference between revisions
Bitmap/Bresenham's line algorithm (view source)
Revision as of 07:14, 18 February 2017
, 7 years ago→{{header|BBC BASIC}}
m (Omit from AWK) |
|||
Line 437:
dx% = ABS(x2% - x1%) : sx% = SGN(x2% - x1%)
dy% = ABS(y2% - y1%) : sy% = SGN(y2% - y1%)
IF dx%
REPEAT
PROCsetpixel(x1%,y1%,r%,g%,b%)
|