Skip to main content

rectangle

Function rectangle 

Source
pub fn rectangle() -> RectangleBuilder
Expand description

Create a new rectangle object builder.

rectangle()
    .size(Vec2::new(200.0, 100.0))
    .corner_radius(10.0)
    .color(Color::BLUE)
    .build(),