Skip to content

aninest-root / module:Interp / Interp

Interp()

ts
type Interp = (t) => number | undefined;

Defined in: Animate/Interp.ts:17

Interpolation function. At time 0 it should return either 0 or null (for NO_INTERP)

Parameters

t

number

Time in seconds. Guaranteed to be positive.

Returns

number | undefined

A value or undefined if the animation is finished.

See

NO_INTERP, getLinearInterp, getSlerp, and getCubicBezier to create interpolation functions.