curveBasisClosed function Curves

Curve curveBasisClosed(
  1. Path context
)

Produces a closed cubic basis spline using the specified control points.

When a line segment ends, the first three control points are repeated, producing a closed loop with C2 continuity.

Implementation

Curve curveBasisClosed(Path context) => CurveBasisClosed(context);