@mocanvas/mocanvas · function
declare function catmullRomToBezier(points: readonly VecLike[], closed?: boolean): CubicSegment[]Convert a polyline into a smooth cubic spline that passes through every point (uniform Catmull-Rom, tension 0.5, converted to bézier handles). Endpoints are clamped so the curve starts and ends exactly on the first and last points.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.