Function draw_triangle

Source
pub fn draw_triangle(a: Point, b: Point, c: Point, s: Style)
Expand description

Draw a triangle.

The order of points doesn’t matter.

Examples found in repository?
examples/triangle/main.rs (lines 8-17)
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}