Function endbasic_std::console::drawing::draw_line
source · pub fn draw_line<R>(
rasops: &mut R,
x1y1: PixelsXY,
x2y2: PixelsXY,
) -> Result<()>where
R: RasterOps,Expand description
Draws a line from x1y1 to x2y2 via rasops.
This implements the Bresenham’s line algorithm.