Arithmetic.Subtracting
Extension Method in Arithmetic
Declaration
public static Color Subtracting(this Color color, Color other, bool subtractAlpha = true)
Description
Returns the result of subtracting the components of another color from the current color. Clamps the values in the range [0..1].
Parameters
color | The color being subtracted from. |
other | The color to subtract. |
subtractAlpha | True to subtract the alpha components, otherwise it is left unmodified (default=true). |
Returns
Color | The new color with the subtracted components. |