Computer Graphics
DDA Algorithm

This applet demonstrates the line drawing algorithm using the Digital Differential Analyzer (DDA) method.
Usage : Select any two points on the pseudo screen with mouse clicks. The 'ideal line' is first drawn as thin blue straight line between the two selected points. The line on the pseudo screen is then drawn by determining the intermmediate pixels using the DDA algorithm. Click 'clear' to refresh the screen, and to select a new pair of points.