Skip to content
pixi-silk
GitHub repository
Function

mapPath

import { mapPath } from 'pixi-silk/path';
function mapPath(path: BezierPath, fn: (p: Vec) => Vec): BezierPath;

Maps every anchor and handle through fn, such as a matrix’s apply. Exact for affine maps.

Parameters#

ParameterType
pathBezierPath
fn(p: Vec) => Vec

Returns#

BezierPath