Skip to content
pixi-silk
GitHub repository
Function

moveAnchors

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

Moves the anchors at indices by (dx, dy). Their handles move with them.

Parameters#

ParameterType
pathBezierPath
indicesreadonly number[]
dxnumber
dynumber

Returns#

BezierPath