According to the logic of Mr. Bresenham it scales the line’s delta because we are working in pixel space. Notice that the entire algorithm works with integer math, not floating point. Without this you would have gaps. The for loops are designed to iterate one pixel at a time, not the actual line equation.

Written by

Issues. Every webdev has them. Published author of CSS Visual Dictionary https://amzn.to/2JMWQP3 few others…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store