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

Method clear

web/src/canvas.rs:200–208  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

198 }
199
200 fn clear(&mut self) -> io::Result<()> {
201 self.context.fill_rect(
202 0.0,
203 0.0,
204 f64::from(self.size_pixels.width),
205 f64::from(self.size_pixels.height),
206 );
207 Ok(())
208 }
209
210 fn present_canvas(&mut self) -> io::Result<()> {
211 self.yielder.request_paint();

Callers 7

test_webdrive_delete_okFunction · 0.45
test_webdrive_enumerateFunction · 0.45
test_webdrive_getFunction · 0.45
test_webdrive_putFunction · 0.45
do_move_pixels_testFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_webdrive_delete_okFunction · 0.36
test_webdrive_enumerateFunction · 0.36
test_webdrive_getFunction · 0.36
test_webdrive_putFunction · 0.36