Function firefly_rust::graphics::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 7-16)
6 7 8 9 10 11 12 13 14 15 16 17
extern fn boot() {
    ff::draw_triangle(
        ff::Point { x: 60, y: 10 },
        ff::Point { x: 40, y: 40 },
        ff::Point { x: 80, y: 40 },
        ff::Style {
            fill_color:   ff::Color::Accent,
            stroke_color: ff::Color::Secondary,
            stroke_width: 1,
        },
    );
}