Re:How to draw ugly lines fast
by scotty79 on Tuesday December 20, 2022 @05:13AM
(#34063914)
I was confused about this too. What he means is fractionally accurate endpoints of the lines. So it's just about line endings coordinates not being exact integers.
[ Parent
| on HN ]
And the reason why fractionally accurate endpoints matter is that they affect what exact pixels get drawn, which in turn makes animation look much smoother. Eg. a line that "crawls" from 0 to 6 as the endpoints move fractionally upward looks much less jittery than a line that's always 3.
0 #
#######
##
######
###
#####
3 ####
####
#####
###
######
##
6 #######
#