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

colorThe color being divided.
otherThe color to divide by.
divideAlphaTrue 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

colorThe color being divided.
divisorThe amount to divide the color by.
divideAlphaTrue to divide the alpha component, otherwise it is left unmodified (default=true).