Xiaolin Wu's line algorithm: Difference between revisions

Content deleted Content added
Algorithm: Follow-up to previous edit: added animation and original symmetrical integer form of Wu's algorithm
 
Line 23:
distance from the true line. This produces smoother, anti-aliased lines.
 
[[File:Wu-line-animation.gif|thumb|Animation showing symmetry of Wu's line algorithm ]]
 
The pseudocode below assumes a line where <math>x_0 < x_1</math>, <math>y_0 < y_1</math>,