3 ms·
Bresenham's line algorithm generalises trivially to drawing trapezoids, too. There's also Bresenham's elliptic arc drawing algorithm that's similarly beautiful.
by anonymous 13y ago
Bresenham's line algorithm generalises trivially to drawing trapezoids, too. There's also Bresenham's elliptic arc drawing algorithm that's similarly beautiful.