Skip to main content

draw_triangle

Function draw_triangle 

Source
pub fn draw_triangle(
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    x3: f32,
    y3: f32,
    color: Color,
)
Expand description

Draws a filled triangle from three points.

ยงExamples

draw_triangle(100.0, 200.0, 200.0, 200.0, 150.0, 100.0, YELLOW);