curveCatmullRomOpen function Curves

Curve curveCatmullRomOpen(
  1. Path context
)

Produces a cubic Catmull–Rom spline using the specified control points and the parameter alpha (see curveCatmullRomClosedAlpha), which defaults to 0.5, as proposed by Yuksel et al.

Unlike curveCatmullRom, one-sided differences are not used for the first and last piece, and thus the curve starts at the second point and ends at the penultimate point.

Implementation

Curve curveCatmullRomOpen(Path context) =>
    curveCatmullRomOpenAlpha(0.5)(context);