polygonX()
polygonX(o, sides, radius, centerX, stepsPerEdge)
Returns the x-coordinate of a point walking along the perimeter of a regular polygon.
Example
const x = polygonX(o, 6, 140, 260, 40);
const y = polygonY(o, 6, 140, 200, 40);
drawPoint(x, y);
© pLabs Entertainment / Funebra Math-Art Engine