Skip to content
pixi-silk
GitHub repository
Function

segmentCount

import { segmentCount } from 'pixi-silk/path';
function segmentCount(path: BezierPath): number;

Number of segments: one fewer than the anchors, or as many when closed.

Parameters#

ParameterType
pathBezierPath

Returns#

number