Skip to content

raylib.DrawPoly

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a regular polygon of n sides (Vector version)

Parameters

Parameter Default Value Note
center [100, 100]
sides 6
radius 32
rotation 0
color WHITE

Return value

None.

Notes

Example

// Draw a filled hexagon centered at (200, 200)
raylib.DrawPoly [200, 200], 6, 60, 0, raylib.SKYBLUE

Clone this wiki locally