Function graphics::rectangle::centered_square [−][src]
pub fn centered_square(x: Scalar, y: Scalar, radius: Scalar) -> Rectangle
Create types::Rectangle
for a square with a center in (x
, y
) and side
2 * radius
.