AntiAliased Line Demonstration


Draw a line by clicking and dragging on the pixel grid shown with the left mouse button. An ideal line is displayed until the left button is released. Upon release a discrete approximation of the line is drawn on the display grid using an anti-aliased line algorithm. An ideal line is then overlaid for comparison. A right click clears the screen.

Select a line type, then draw a line by clicking and dragging with the left mouse button. A gray line trace will follow the mouse. A final line will be drawn upon release. Compare anti-aliased lines with, for example, Bressenham lines.
Lecture 5   Slide 12i   6.837 Fall '01