Skip to content

raylib.DrawTriangleGradient

JoeStrout edited this page Oct 17, 2026 · 1 revision

Draw triangle with interpolated colors (vertex in counter-clockwise order!)

Parameters

Parameter Default Value Note
v1
v2
v3
c1
c2
c3

Return value

None.

Notes

Vertices must be given in counter-clockwise order, or nothing is drawn.

Example

raylib.DrawTriangleGradient [400, 100], [250, 400], [550, 400], raylib.RED, raylib.GREEN, raylib.BLUE

Clone this wiki locally