Skip to main content

draw_poly_line_rounded

Function draw_poly_line_rounded 

Source
pub fn draw_poly_line_rounded(
    points: &[Vector2],
    thickness: f32,
    color: Color,
    closed: bool,
)
Expand description

Draws connected line segments through points with rounded joints and caps. If closed is true, the last point connects back to the first.

ยงExamples

let pts = [Vector2::new(50.0, 50.0), Vector2::new(150.0, 80.0), Vector2::new(100.0, 160.0)];
draw_poly_line_rounded(&pts, 6.0, WHITE, false);