Bresenham's line algorithm

Click at some point to select a line's starting point, click again to draw a line.

Download source code

Some theory behind Bresenham's line algorithm

 


Discussion:
Add post