Pmndrs.docs

Interpolations

๐Ÿšง We'd love to add some examples to this, consider submitting a PR ๐Ÿšง

value.to either takes an object of the following shape:

ValuedefaultDescription
extrapolateLeftextendLeft extrapolate. Can be: identity/clamp/extend
extrapolateRightextendRight extrapolate. Can be: identity/clamp/extend
extrapolateextendShortcut to set left and right-extrapolate
range[0,1]Array of input ranges
outputundefinedArray of mapped output ranges
mapundefinedValue filter applied to input value

A range shortcut: value.to([...inputRange], [...outputRange])

Or a function: value.to(v => ...)