Function graphics::rectangle::square

source ·
pub fn square(x: Scalar, y: Scalar, size: Scalar) -> Rectangle
Expand description

Create types::Rectangle for a square with a top-left corner in (x, y) and side size.