Skip to content

getRegularPolygonPath

getRegularPolygonPath(numVertexes, radius): TSimplePathData

Defined in: src/util/path/index.ts:1005

Returns an array of path commands to create a regular polygon

Parameters

numVertexes

number

radius

number

Returns

TSimplePathData

An array of SVG path commands