Skip to main content

draw_triangle_lines

Function draw_triangle_lines 

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

Draws the outline of a triangle from three points.

ยงExamples

draw_triangle_lines(100.0, 200.0, 200.0, 200.0, 150.0, 100.0, 3.0, WHITE);