Skip to content

raylib.DrawRectangleGradientV

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a vertical-gradient-filled rectangle

Parameters

Parameter Default Value Note
posX 0
posY 0
width 256
height 256
color1 WHITE
color2 BLACK

Return value

None.

Notes

Example

// 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

Clone this wiki locally