Bresenham Algorithm Line Demo

Your browser does not support the HTML5 canvas

Pixels/square:           Time to draw: seconds

Use the mouse to click on two squares.
A line will be drawn between them using the Bresenham algorithm.