Skip to content

raylib.DrawRectangleRounded

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw rectangle with rounded edges

Parameters

Parameter Default Value Note
rec
roundness 0.5
segments 36
color WHITE

Return value

None.

Notes

Example

// Draw a rectangle with rounded corners
rec = {x:50, y:50, width:200, height:100}
raylib.DrawRectangleRounded rec, 0.3, 12, raylib.BLUE

Clone this wiki locally