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