Appearance
module curveInterpolators.ts
type CurveType
ts
export type CurveType = "straight" | "catmull-rom" | "stair-step";
function plotStraightLine
ts
(points: NumericPoint[]) => string
Parameters
- points
NumericPoint
Returns string
function plotCatmullRom
ts
(points: NumericPoint[], alpha: 0.5 | 1) => string
Parameters
- points
NumericPoint
- alpha
0.5 | 1
Returns string
function plotStairStep
ts
(points: NumericPoint[], topRatio?: number) => string
Parameters
- points
NumericPoint
- topRatio
number