The Bresenham Line routine (https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm) was created by Jack Bresenham back in 1962. It has been described as one of the most important algorithms made for computer graphics. It allows you to use integer math to draw a line, and it’s fast.
We’re going to implement several different versions of this algorithm in C to improve its speed compared to the default algorithm listed on Wikipedia.