Skip to main content

draw_rectangle_rounded_ex

Function draw_rectangle_rounded_ex 

Source
pub fn draw_rectangle_rounded_ex(
    x: f32,
    y: f32,
    w: f32,
    h: f32,
    top_left: f32,
    top_right: f32,
    bottom_left: f32,
    bottom_right: f32,
    color: Color,
)
Expand description

Draws a rounded, filled rectangle with its top-left corner at (x, y) with the ability to set each corner’s radius manually.

§Examples

draw_rectangle_rounded_ex(
    x, y,
    w, h,
    top_left, top_right,
    bottom_left, bottom_right,
    RED
);