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

pub fn border_triangles(
    rect: Rect,
    border: f64
) -> Option<[Triangle<[f64; 2]>; 8]>

The eight triangles that describe a rectangular border.

rect specifies the outer rectangle and border specifies the thickness of the border.

Returns None if border is less than or equal to 0.