Function colorSubtract

  • Finds the difference of 2 color objects

    Returns

    A new color object thats the difference of color1 and color2

    Example

    const color1 = new Color(0.5, 0.6, 0.75)
    const color2 = new Color(0.1, 0.1, 0.25)
    colorSubtract(color1, color2).toArray() // -> [0.4, 0.5, 0.5]

    Parameters

    Returns Color

Generated using TypeDoc