Is there a reason why we use diamond specifically? what about circles enclosing each grid?
aabedon
I think diamonds are easy to compute, once you have the equation of the line you only need to look at the vertical distance from the center of the square to determine if it intersects the diamond.
Koke_Cacao
What part of our algorithm should we modify if the line does not start in the diamond space?
mateib
I've seen computers partially shade in pixels to make lines appear smoother - what kinds of algorithms can be used to do something like this?
Is there a reason why we use diamond specifically? what about circles enclosing each grid?
I think diamonds are easy to compute, once you have the equation of the line you only need to look at the vertical distance from the center of the square to determine if it intersects the diamond.
What part of our algorithm should we modify if the line does not start in the diamond space?
I've seen computers partially shade in pixels to make lines appear smoother - what kinds of algorithms can be used to do something like this?