Skip to content

spline

catmull() function

Perform Catmull-Rom spline sampling on an array of 2D points, returning an array of samples.

bezier() function

Perform a Bezier spline (or catmull) sampling on 2D points, returning an array of sampled points.