@motion-script/core / polygonVertices
Function: polygonVertices()
polygonVertices(
width,height,sides):Vector2[]
Defined in: render/clip-contains.ts:261
Vertices of a regular polygon inscribed in width×height, y-up author
space. The renderer starts at the top vertex and steps clockwise in canvas
space; in y-up that is +π/2 stepping negative.
Parameters
width
number
height
number
sides
number
Returns
Vector2[]