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

Method set_draw_color

sdl/src/host.rs:419–424  ·  view source on GitHub ↗
(&mut self, color: RGB)

Source from the content-addressed store, hash-verified

417 }
418
419 fn set_draw_color(&mut self, color: RGB) {
420 if self.draw_color != color {
421 self.canvas.set_draw_color(rgb_to_color(color));
422 self.draw_color = color;
423 }
424 }
425
426 fn clear(&mut self) -> io::Result<()> {
427 self.canvas.clear();

Callers 1

newMethod · 0.45

Calls 1

rgb_to_colorFunction · 0.85

Tested by

no test coverage detected