Skip to main content

draw_rectangle

Function draw_rectangle 

Source
pub fn draw_rectangle(x: f32, y: f32, w: f32, h: f32, color: Color)
Expand description

Draws a filled rectangle with its top-left corner at (x, y).

ยงExamples

draw_rectangle(100.0, 100.0, 50.0, 80.0, RED);