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

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

Returns

ColorThe new color with the subtracted components.