Skip to content
On this page

module curveInterpolators.ts

type CurveType

ts
export type CurveType = "straight" | "catmull-rom" | "stair-step";

function plotStraightLine

ts
(points: NumericPoint[]) => string

Parameters

Returns string

function plotCatmullRom

ts
(points: NumericPoint[], alpha: 0.5 | 1) => string

Parameters

Returns string

function plotStairStep

ts
(points: NumericPoint[], topRatio?: number) => string

Parameters

Returns string

Released under the MIT License.