Nu/Nu.Math/Color.cs
/// <summary>
/// Returns a color created from the smallest of the corresponding components of the given colors.
/// </summary>
/// <param name="a">First operand.</param>
/// <param name="b">Second operand.</param>
/// <param name="result">The component-wise minimum.</param>
Returns a color created from the smallest of the corresponding components of the given colors.
Returns a color created from the smallest of the corresponding components of the given colors .
public static void ComponentMin(ref Color a, ref Color b, out Color result)
        {
            result.R = a.R < b.R ? a.R : b.R;
            result.G = a.G < b.G ? a.G : b.G;
            result.B = a.B < b.B ? a.B : b.B;
            result.A = a.A < b.A ? a.A : b.A;
        }
public static void ComponentMin ( ref Color a , ref Color b , out Color result ) { result . R = a . R < b . R ? a . R : b . R ; result . G = a . G < b . G ? a . G : b . G ; result . B = a . B < b . B ? a . B : b . B ; result . A = a . A < b . A ? a . A : b . A ; }
Returns a color created from the smallest of the corresponding components of the given colors.
Returns a color created from the smallest of the corresponding components of the given colors .
Color
out
a
None
b
None
result
The component-wise minimum.
The component - wise minimum .