• Creates a color map function that interpolates between two colors.

    Parameters

    • colors: {
          c0: Color;
          c1: Color;
      }

      The input colors.

      • c0: Color

        The starting color.

      • c1: Color

        The ending color.

    Returns ColorMap

    A function that takes a value t (0 to 1) and returns an interpolated color.

Generated using TypeDoc