-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.DrawRectangleGradientV
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw a vertical-gradient-filled rectangle
| Parameter | Default Value | Note |
|---|---|---|
| posX | 0 | |
| posY | 0 | |
| width | 256 | |
| height | 256 | |
| color1 | WHITE | |
| color2 | BLACK |
None.
// Draw a rectangle that fades from white at the top to black at the bottom
raylib.DrawRectangleGradientV 50, 50, 200, 100, raylib.WHITE, raylib.BLACK