Function nannou::ui::widget::bordered_rectangle::rounded_border_triangles[][src]

pub fn rounded_border_triangles(
    rect: Rect,
    thickness: f64,
    radius: f64,
    corner_resolution: usize
) -> RoundedBorderTriangles

An iterator yielding triangles for a rounded border.

Clamps the thickness of the border to half the smallest dimension of the rectangle to ensure the bounds of the rect are not exceeded.