You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw triangle with interpolated colors within an image
Parameters
Parameter
Default Value
Note
dst
v1
v2
v3
c1
c2
c3
Return value
None.
Notes
Example
img=raylib.GenImageColor(128, 128, raylib.BLACK)
// Draw a triangle with a different color at each vertexraylib.ImageDrawTriangleEximg, [64, 0], [127, 127], [0, 127], raylib.RED, raylib.GREEN, raylib.BLUEraylib.ExportImageimg, "triangle_ex.png"raylib.UnloadImageimg