Skip to content
pixi-silk
GitHub repository
Function

removeAnchors

import { removeAnchors } from 'pixi-silk/path';
function removeAnchors(path: BezierPath, indices: readonly number[]): BezierPath;

Removes the anchors at indices. A closed path left with fewer than two anchors opens.

Parameters#

ParameterType
pathBezierPath
indicesreadonly number[]

Returns#

BezierPath