Bitmap/Bresenham's line algorithm: Difference between revisions

m
→‎{{header|C++}}: Formatted code, no functional changes
(Add Nimrod)
m (→‎{{header|C++}}: Formatted code, no functional changes)
Line 423:
{
if(steep)
{
SetPixel(y,x, color);
}
else
{
SetPixel(x,y, color);
}
error -= dy;
if(error < 0)
{
y += ystep;
error += dx;
}
}
}