Nu/Nu.Math/Color.cs
/// <summary>
/// Subtract one color from another.
/// </summary>
/// <param name="a">First operand.</param>
/// <param name="b">Second operand.</param>
/// <param name="result">Result of subtraction.</param>
Subtract one color from another.
Subtract one color from another .
public static void Subtract(ref Color a, ref Color b, out Color result)
        {
            result.R = (byte)(a.R - b.R);
            result.G = (byte)(a.G - b.G);
            result.B = (byte)(a.B - b.B);
            result.A = (byte)(a.A - b.A);
        }
public static void Subtract ( ref Color a , ref Color b , out Color result ) { result . R = ( byte ) ( a . R - b . R ) ; result . G = ( byte ) ( a . G - b . G ) ; result . B = ( byte ) ( a . B - b . B ) ; result . A = ( byte ) ( a . A - b . A ) ; }
Subtract one color from another.
Subtract one color from another .
Color
out
a
None
b
None
result
Result of subtraction.
Result of subtraction .