MCPcopy Create free account
hub / github.com/endbasic/endbasic / draw_rect_filled

Method draw_rect_filled

web/src/canvas.rs:351–359  ·  view source on GitHub ↗
(&mut self, xy: PixelsXY, size: SizeInPixels)

Source from the content-addressed store, hash-verified

349 }
350
351 fn draw_rect_filled(&mut self, xy: PixelsXY, size: SizeInPixels) -> io::Result<()> {
352 self.context.fill_rect(
353 f64::from(xy.x),
354 f64::from(xy.y),
355 f64::from(size.width),
356 f64::from(size.height),
357 );
358 Ok(())
359 }
360
361 fn draw_tri(&mut self, x1y1: PixelsXY, x2y2: PixelsXY, x3y3: PixelsXY) -> io::Result<()> {
362 self.context.begin_path();

Callers 1

do_move_pixels_testFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected