Ghost Together
1 min readJan 9, 2019

--

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.

--

--

Ghost Together
Ghost Together

Written by Ghost Together

Ghost Together @ https://semicolon.dev is an alternative to Twitter. Sign up to meet other makers of things.

No responses yet