Skip to main content

draw_rectangle_lines_rounded_from_rect

Function draw_rectangle_lines_rounded_from_rect 

Source
pub fn draw_rectangle_lines_rounded_from_rect(
    rect: Rect,
    radius: f32,
    thickness: f32,
    color: Color,
)
Expand description

Draws rounded, outlines of a rectangle using a Rect where all corners have the same radius. Use draw_rectangle_lines_rounded_from_rect_ex() to set all radii separately.

ยงExamples

draw_rectangle_lines_rounded_from_rect(rect, 20.0, RED); // 20.0 is the radius