Create a function that maps from a numerical input array to a generic output array.
Accepts:
const mixColor = interpolate([0, 1], ['#fff', '#000'])mixColor(0.5) // 'rgba(128, 128, 128, 1)' Copy
const mixColor = interpolate([0, 1], ['#fff', '#000'])mixColor(0.5) // 'rgba(128, 128, 128, 1)'
TODO Revist this approach once we've moved to data models for values, probably not needed to pregenerate mixer functions.
Optional
Generated using TypeDoc
Create a function that maps from a numerical input array to a generic output array.
Accepts:
TODO Revist this approach once we've moved to data models for values, probably not needed to pregenerate mixer functions.