Skip to content

raylib.DrawRectangle

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a color-filled rectangle

Parameters

Parameter Default Value Note
x 0
y 0
width 256
height 256
color WHITE

Return value

None.

Notes

Example

// Draw a blue rectangle at (50, 50) with size 200x100
raylib.DrawRectangle 50, 50, 200, 100, raylib.BLUE

Clone this wiki locally