Skip to content
pixi-silk
GitHub repository
Function

segmentAt

import { segmentAt } from 'pixi-silk/path';
function segmentAt(path: BezierPath, i: number): Cubic;

Segment i as a cubic, from anchor i to the next one. A straight segment has its controls on its ends.

Parameters#

ParameterType
pathBezierPath
inumber

Returns#

Cubic