Function clear_screen

Source
pub fn clear_screen(c: Color)
Expand description

Fill the whole frame with the given color.

Examples found in repository?
examples/triangle/main.rs (line 7)
6extern fn boot() {
7    ff::clear_screen(ff::Color::White);
8    ff::draw_triangle(
9        ff::Point { x: 60, y: 10 },
10        ff::Point { x: 40, y: 40 },
11        ff::Point { x: 80, y: 40 },
12        ff::Style {
13            fill_color: ff::Color::LightGray,
14            stroke_color: ff::Color::DarkBlue,
15            stroke_width: 1,
16        },
17    );
18}