Arithmetic.Subtract

Extension Method in Arithmetic

Declaration

public static void Subtract(this ref Color color, Color other, bool subtractAlpha = true)

Description

Subtracts the components of another color from the current color. Clamps the values in the range [0..1].

Parameters

colorThe color being subtracted from.
otherThe color to subtract.
subtractAlphaTrue to subtract the alpha components, otherwise it is left unmodified (default=true).