Anonymous user
Bitmap/Bresenham's line algorithm: Difference between revisions
→{{header|Rust}}
m (→{{header|Phix}}: minor tidy) |
|||
Line 3,639:
coordinates.push(Point { x: current_x, y: current_y });
} else if error2 <= i32::abs(dx) {
error
current_y += sy;
coordinates.push(Point { x: current_x, y: current_y });
|