Core · function
timeCurve
Build a curve, validating at construction.
Explained in The loop.
function timeCurve(kind: TimeCurveKind, durationSec: number, options?: TimeCurveOptions): TimeCurveimport { timeCurve } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
kind | TimeCurveKind | |
durationSec | number | |
options? | TimeCurveOptions |
In depth
Fail-fast here rather than per-frame in curveOffsetSec: a curve is built
once when a clip is planned, and a plan is a fine place to throw.