Skip to content

raylib.DrawTriangle

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a triangle NOTE: Vertex must be provided in counter-clockwise order

Parameters

Parameter Default Value Note
v1
v2
v3
color WHITE

Return value

None.

Notes

Example

// Draw a filled triangle (vertices in counter-clockwise order)
raylib.DrawTriangle [200, 50], [100, 200], [300, 200], raylib.RED

Clone this wiki locally