Arithmetic.Adding

Extension Method in Arithmetic

Declaration

public static Color Adding(this Color color, Color other, bool addAlpha = true)

Description

Returns the result of adding the components of another color to the current color. Clamps the values in the range [0..1].

Parameters

colorThe color being added to.
otherThe color to add.
addAlphaTrue to add the alpha components, otherwise it is left unmodified (default=true).

Returns

ColorThe new color with the added components.