Nu/Nu.Math/Color.cs
/// <summary>
/// Divides a color by the components of a color using integer division, floor(a/b).
/// </summary>
/// <param name="color">Left operand.</param>
/// <param name="scale">Right operand.</param>
/// <param name="result">Result of the operation.</param>
Divides a color by the components of a color using integer division, floor(a/b).
Divides a color by the components of a color using integer division floor ( a / b ) .
public static void Divide(ref Color color, ref Color scale, out Color result)
        {
            result.R = (byte)(color.R / (scale.R / 255.0f));
            result.G = (byte)(color.G / (scale.G / 255.0f));
            result.B = (byte)(color.B / (scale.B / 255.0f));
            result.A = (byte)(color.A / (scale.A / 255.0f));
        }
public static void Divide ( ref Color color , ref Color scale , out Color result ) { result . R = ( byte ) ( color . R / ( scale . R / 255.0f ) ) ; result . G = ( byte ) ( color . G / ( scale . G / 255.0f ) ) ; result . B = ( byte ) ( color . B / ( scale . B / 255.0f ) ) ; result . A = ( byte ) ( color . A / ( scale . A / 255.0f ) ) ; }
Divides a color by the components of a color using integer division, floor(a/b).
Divides a color by the components of a color using integer division floor ( a / b ) .
Color
out
color
None
scale
None
result
Result of the operation.
Result of the operation .