Skip to main content

draw_rectangle_rounded_from_rect_ex

Function draw_rectangle_rounded_from_rect_ex 

Source
pub fn draw_rectangle_rounded_from_rect_ex(
    rect: Rect,
    top_left: f32,
    top_right: f32,
    bottom_left: f32,
    bottom_right: f32,
    color: Color,
)
Expand description

Draws a rounded, filled rectangle using a Rect, with the ability to set each corner’s radius separately.

§Examples

draw_rectangle_rounded_from_rect_ex(
    rect,
    top_left, top_right,
    bottom_left, bottom_right,
    RED
);