Arithmetic.MultipliedBy
Extension Method in Arithmetic
Declaration
public static Color MultipliedBy(this Color color, Color other, bool multiplyAlpha = true)
Description
Returns the result of multiplying 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). |
Returns
Color | The new color with the multiplied components. |
Overload
Declaration
public static Color MultipliedBy(this Color color, float multiplier, bool multiplyAlpha = true)
Description
Returns the result of multiplying 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). |
Returns
Color | The new color with the multiplied components. |