Skip to content

raylib.DrawTriangleFan

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a triangle fan defined by points NOTE: First vertex provided is the center, shared by all triangles By default, following vertex should be provided in counter-clockwise order

Parameters

Parameter Default Value Note
points
color WHITE

Return value

None.

Notes

Example

// Draw a triangle fan — first point is the shared center
pts = [[200, 150], [150, 50], [250, 50], [300, 150], [250, 250], [150, 250]]
raylib.DrawTriangleFan pts, raylib.SKYBLUE

Clone this wiki locally