Bresenham's line algorithm (source code)

= Bresenham's line algorithm
{wiki=Bresenham's_line_algorithm}

Bresenham's line algorithm is an efficient algorithm used in computer graphics to determine which points in a grid or raster display should be plotted in order to form a straight line between two given points. It was developed by Jack Bresenham in 1962 and is particularly valued for being a simple, integer-based algorithm that runs quickly and does not require floating-point arithmetic.