Function interpolateCool

  • Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string.

    Parameters

    • t: number

      A number in the interval [0, 1].

    Returns string