• Create a function that maps from a numerical input array to a generic output array.

    Accepts:

    • Numbers
    • Colors (hex, hsl, hsla, rgb, rgba)
    • Complex (combinations of one or more numbers or strings)
    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.

    Type Parameters

    • T

    Parameters

    Returns ((v) => T)

      • (v): T
      • Parameters

        • v: number

        Returns T

Generated using TypeDoc