Nu/Nu.Math/Color.cs
/// <summary>
/// Returns a color created from the largest of the corresponding components of the given colors.
/// </summary>
/// <param name="a">First operand.</param>
/// <param name="b">Second operand.</param>
/// <returns>The component-wise maximum.</returns>
Returns a color created from the largest of the corresponding components of the given colors.
Returns a color created from the largest of the corresponding components of the given colors .
[Pure]
        public static Color ComponentMax(Color a, Color b)
        {
            a.R = a.R > b.R ? a.R : b.R;
            a.G = a.G > b.G ? a.G : b.G;
            a.B = a.B > b.B ? a.B : b.B;
            a.A = a.A > b.A ? a.A : b.A;
            return a;
        }
[ Pure ] public static Color ComponentMax ( Color a , Color b ) { a . R = a . R > b . R ? a . R : b . R ; a . G = a . G > b . G ? a . G : b . G ; a . B = a . B > b . B ? a . B : b . B ; a . A = a . A > b . A ? a . A : b . A ; return a ; }
Returns a color created from the largest of the corresponding components of the given colors.
Returns a color created from the largest of the corresponding components of the given colors .
The component-wise maximum.
The component - wise maximum .
a
Color
None
b
Color
None