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

Function draw_poly_filled

std/src/console/drawing.rs:359–365  ·  view source on GitHub ↗

Draws a filled polygon via `rasops`.

(rasops: &mut R, points: &[PixelsXY])

Source from the content-addressed store, hash-verified

357
358/// Draws a filled polygon via `rasops`.
359pub fn draw_poly_filled<R>(rasops: &mut R, points: &[PixelsXY]) -> io::Result<()>
360where
361 R: RasterOps + ?Sized,
362{
363 fill_polygon(rasops, points)?;
364 draw_poly(rasops, points)
365}
366
367/// Draws a rectangle via `rasops` starting at `x1y1` with `size`.
368pub fn draw_rect<R>(rasops: &mut R, x1y1: PixelsXY, size: SizeInPixels) -> io::Result<()>

Callers 5

draw_poly_filledMethod · 0.85
draw_poly_filledMethod · 0.85
test_draw_poly_filledFunction · 0.85
draw_poly_filledMethod · 0.85

Calls 2

fill_polygonFunction · 0.85
draw_polyFunction · 0.85

Tested by 2

test_draw_poly_filledFunction · 0.68