Function interpolatePurples

  • Given a number t in the range [0,1], returns the corresponding color from the “Purples” sequential color scheme represented as an RGB string.

    Parameters

    • t: number

      Number in the range [0, 1].

    Returns string