Skip to content

raylib.DrawRectanglePro

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a color-filled rectangle with pro parameters

Parameters

Parameter Default Value Note
rec
origin [0, 0]
rotation 0
color WHITE

Return value

None.

Notes

Example

// Draw a rectangle rotated 45 degrees around its center
rec = {x:200, y:200, width:100, height:60}
raylib.DrawRectanglePro rec, [50, 30], 45, raylib.GREEN

Clone this wiki locally