Skip to main content

rectangle

Function rectangle 

Source
pub fn rectangle(
    center: Point,
    size: Vec2,
    radius: f64,
    degrees: f64,
) -> BezPath
Expand description

A rectangle of full size about center, corners rounded by radius (capped at half the shorter side), turned degrees clockwise. It starts at its top-right corner (below the corner’s arc when rounded) and runs clockwise.