Skip to content

raylib.DrawRectangleRec

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a color-filled rectangle

Parameters

Parameter Default Value Note
rec
color WHITE

Return value

None.

Notes

Example

// Draw a filled rectangle defined by a Rectangle map
rec = {x:50, y:50, width:200, height:100}
raylib.DrawRectangleRec rec, raylib.SKYBLUE

Clone this wiki locally