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

Method set_draw_color

std/src/gfx/lcd/buffered/mod.rs:353–355  ·  view source on GitHub ↗
(&mut self, color: RGB)

Source from the content-addressed store, hash-verified

351 }
352
353 fn set_draw_color(&mut self, color: RGB) {
354 self.draw_color = self.lcd.encode(color);
355 }
356
357 fn clear(&mut self) -> io::Result<()> {
358 self.fill(

Callers 15

dropMethod · 0.45
test_fill_one_pixel_syncFunction · 0.45
test_fill_rect_syncFunction · 0.45
test_fill_rect_no_syncFunction · 0.45
test_clearFunction · 0.45
test_present_canvasFunction · 0.45
test_read_pixels_syncFunction · 0.45
test_read_pixels_no_syncFunction · 0.45

Calls 1

encodeMethod · 0.45

Tested by 15

test_fill_one_pixel_syncFunction · 0.36
test_fill_rect_syncFunction · 0.36
test_fill_rect_no_syncFunction · 0.36
test_clearFunction · 0.36
test_present_canvasFunction · 0.36
test_read_pixels_syncFunction · 0.36
test_read_pixels_no_syncFunction · 0.36
test_write_text_syncFunction · 0.36