Skip to content

raylib.DrawRectangleGradientEx

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a gradient-filled rectangle

Parameters

Parameter Default Value Note
rec
col1
col2
col3
col4

Return value

None.

Notes

Example

// Draw a rectangle with a different color at each corner
rec = {x:50, y:50, width:200, height:150}
raylib.DrawRectangleGradientEx rec, raylib.RED, raylib.BLUE, raylib.GREEN, raylib.YELLOW

Clone this wiki locally