Algorithm
Select an algorithm and step through the pixel-by-pixel rasterisation.
Step Inspector
Press Step or Play to begin.
Next pixel
Coords(-6, -4)
Decision var (e)4
How it works
Bresenham's line algorithm rasterises a line using only integer arithmetic. It maintains an error term e = dx − dy and at each step decides whether to step in x, y, or both based on whether 2e exceeds the thresholds.