Arithmetic.Multiply
Extension Method in Arithmetic
Declaration
public static void Multiply(this ref Color color, Color other, bool multiplyAlpha = true)
Description
Multiplies the components of the color with another color. Clamps the values in the range [0..1].
Parameters
color | The color being multiplied. |
other | The color to multiply by. |
multiplyAlpha | True to multiply the alpha components, otherwise it is left unmodified (default=true). |
Overload
Declaration
public static void Multiply(this ref Color color, float multiplier, bool multiplyAlpha = true)
Description
Multiplies the components of the color by a multiplier. Clamps the values in the range [0..1].
Parameters
color | The color being multiplied. |
multiplier | The amount to multiply the color by. |
multiplyAlpha | True to multiply the alpha component, otherwise it is left unmodified (default=true). |