Skip to content

raylib.DrawRectangleV

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a color-filled rectangle (Vector version) NOTE: On OpenGL 3.3 and ES2 using QUADS to avoid drawing order issues

Parameters

Parameter Default Value Note
position [0, 0]
size [256, 256]
color WHITE

Return value

None.

Notes

Example

// Draw a rectangle using Vector2 position and size
raylib.DrawRectangleV [50, 50], [200, 100], raylib.GREEN

Clone this wiki locally