Skip to content
pixi-silk
GitHub repository
Function

pathFromPoints

import { pathFromPoints } from 'pixi-silk/path';
function pathFromPoints(points: readonly Vec[], closed?: boolean): BezierPath;

A path through points with straight segments and corner anchors.

Parameters#

ParameterTypeDefault value
pointsreadonly Vec[]undefined
closedbooleanfalse

Returns#

BezierPath