Function graphics::rectangle::square [−][src]
pub fn square(x: Scalar, y: Scalar, size: Scalar) -> Rectangle
Create types::Rectangle
for a square with a top-left corner in (x
, y
)
and side size
.
pub fn square(x: Scalar, y: Scalar, size: Scalar) -> Rectangle
Create types::Rectangle
for a square with a top-left corner in (x
, y
)
and side size
.