• Creates a color map function that interpolates between three colors using quadratic interpolation.

    Parameters

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

      The input colors.

      • c0: Color

        The first color.

      • c1: Color

        The second color.

      • c2: Color

        The third color.

    Returns ColorMap

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

Generated using TypeDoc