MCPcopy Index your code
hub / github.com/endbasic/endbasic / draw_line

Method draw_line

std/src/console/drawing.rs:535–538  ·  view source on GitHub ↗
(&mut self, x1y1: PixelsXY, x2y2: PixelsXY)

Source from the content-addressed store, hash-verified

533 }
534
535 fn draw_line(&mut self, x1y1: PixelsXY, x2y2: PixelsXY) -> io::Result<()> {
536 self.ops.push(CapturedRasop::DrawLine(x1y1.x, x1y1.y, x2y2.x, x2y2.y));
537 Ok(())
538 }
539
540 fn draw_pixel(&mut self, xy: PixelsXY) -> io::Result<()> {
541 self.ops.push(CapturedRasop::DrawPixel(xy.x, xy.y));

Callers 5

lineFunction · 0.45
draw_polyFunction · 0.45
fill_polygonFunction · 0.45
draw_rectFunction · 0.45
draw_triFunction · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected