Update - I have found my subtle bug! A perfectly reasonable assumption that is only 99.99% true. Literally a corner case. Sigh.
Top-level
Update - I have found my subtle bug! A perfectly reasonable assumption that is only 99.99% true. Literally a corner case. Sigh. 2 comments
Here's the final algorithm(s) written up, including source code! https://cohost.org/tomforsyth/post/648716-how-to-draw-ugly-lin |
Late-night debugging of comments (the code works!) and I repeatedly confused myself by forgetting that for old-school 2D graphics algos, Y is usually DOWN, not up.