Function firefly_rust::graphics::clear_screen

source ·
pub fn clear_screen(c: Color)
Expand description

Fill the whole frame with the given color.

Examples found in repository?
examples/image/main.rs (line 25)
24
25
26
27
28
29
30
extern fn update() {
    ff::clear_screen(ff::Color::Light);
    let image = unsafe { IMAGE.get().unwrap() };
    let image: ff::Image = (image).into();
    let colors = ff::ImageColors::default();
    ff::draw_image(image, ff::Point { x: 60, y: 60 }, colors);
}