2 ms·
As a side-note, I want to point out the classic Bresentham's Algorithm [1] for drawing straight (non anti-aliased) lines. The cool thing about Bresentham's is
by AceJohnny2 5y ago
As a side-note, I want to point out the classic Bresentham's Algorithm [1] for drawing straight (non anti-aliased) lines.
The cool thing about Bresentham's is you can generalize it to spread out one action (moving on Y) evenly across an input range (moving on X)
[1] https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm