Skip to main content

draw_rectangle_lines

Function draw_rectangle_lines 

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

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

ยงExamples

draw_rectangle_lines(100.0, 100.0, 50.0, 80.0, 4.0, WHITE);