Function colorAdd

  • Sums 2 color objects

    Returns

    A new color object thats the sum of color1 and color2

    Example

    const color1 = new Color(0.9, 0.6, 0.75)
    const color2 = new Color(0.7, 0.1, 0.25)
    colorAdd(color1, color2).toArray() // -> [1.6, 0.7, 1.0]

    Parameters

    Returns Color

Generated using TypeDoc