Skip to main content

Function: sampledPathFromPoints()

sampledPathFromPoints(points, samplesPerSegment): SampledPath

Defined in: src/mobjects/text/textOnPathLayout.ts:103

Build a SampledPath from a shared-anchor cubic Bezier point chain (the point layout every VMobject uses).

Parameters​

points​

number[][]

Point chain [A0, H1, H2, A1, H3, H4, A2, ...]

samplesPerSegment​

number = 20

Samples per cubic for the arc-length table

Returns​

SampledPath