Skip to content

Documentation / @ripl/core / interpolatePolygonPoint

Function: interpolatePolygonPoint() ​

interpolatePolygonPoint(sides, cx, cy, radius, closePath?): Interpolator<Point>

Defined in: packages/core/src/interpolators/path.ts:138

Creates an interpolator that traces a point around the vertices of a regular polygon.

Parameters ​

ParameterTypeDefault value
sidesnumberundefined
cxnumberundefined
cynumberundefined
radiusnumberundefined
closePathbooleantrue

Returns ​

Interpolator<Point>