Arithmetic.DividedBy
Extension Method in Arithmetic
Declaration
public static Color DividedBy(this Color color, Color other, bool divideAlpha = true)Description
Returns the result of dividing 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). | 
Returns
| Color | The new color with the divided components. | 
Overload
Declaration
public static Color DividedBy(this Color color, float divisor, bool divideAlpha = true)Description
Returns the result of dividing 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). | 
Returns
| Color | The new color with the divided components. |