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