Bitmap/Bresenham's line algorithm: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 180:
=={{header|C}}==
 
<lang C>#define plot(x, y) put_pixel_clip(img, x, y, r, g, b)
#define swap_uint(a, b) do{ unsigned int tmp; tmp = a; a = b; b = tmp; }while(0)
 
Line 220:
}
#undef swap_uint
#undef plot</Clang>
 
=={{header|Forth}}==