-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.DrawRectangleGradientEx
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw a gradient-filled rectangle
| Parameter | Default Value | Note |
|---|---|---|
| rec | ||
| col1 | ||
| col2 | ||
| col3 | ||
| col4 |
None.
// 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