Skip to content

Documentation / @ripl/core / Interpolator

Type Alias: Interpolator<TValue> ​

Interpolator<TValue> = (position) => TValue

Defined in: packages/core/src/interpolators/types.ts:2

A function that interpolates between two values based on a normalized position (0–1).

Type Parameters ​

Type ParameterDefault type
TValuenumber

Parameters ​

ParameterType
positionnumber

Returns ​

TValue