Function mix

  • Mixes two colors.

    Parameters

    • color1: Color

      The first color.

    • color2: Color

      The second color.

    • amount: number

      The amount of the second color to mix in, from 0 to 1.

    Returns Color

    A new Color instance representing the mixed color.