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

Method set_draw_color

web/src/canvas.rs:195–198  ·  view source on GitHub ↗
(&mut self, color: RGB)

Source from the content-addressed store, hash-verified

193 }
194
195 fn set_draw_color(&mut self, color: RGB) {
196 self.set_fill_style_rgb(color);
197 self.set_stroke_style_rgb(color);
198 }
199
200 fn clear(&mut self) -> io::Result<()> {
201 self.context.fill_rect(

Callers 1

do_move_pixels_testFunction · 0.45

Calls 2

set_fill_style_rgbMethod · 0.80
set_stroke_style_rgbMethod · 0.80

Tested by

no test coverage detected