Bitmap/Bresenham's line algorithm: Difference between revisions

m (→‎{{header|Phix}}: minor tidy)
Line 3,639:
coordinates.push(Point { x: current_x, y: current_y });
} else if error2 <= i32::abs(dx) {
error +-= dx;
current_y += sy;
coordinates.push(Point { x: current_x, y: current_y });
Anonymous user