Nu/Nu.Math/Color.cs
/// <summary>
/// Multiplies a color by the components of a color (scale).
/// </summary>
/// <param name="color">Left operand.</param>
/// <param name="scale">Right operand.</param>
/// <param name="result">Result of the operation.</param>
Multiplies a color by the components of a color (scale).
Multiplies a color by the components of a color ( scale ) .
public static void Multiply(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 Multiply ( 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 ) ) ; }
Multiplies a color by the components of a color (scale).
Multiplies a color by the components of a color ( scale ) .
Color
out
<not_specific>
color
<not_specific>
None
scale
<not_specific>
None
result
<not_specific>
Result of the operation.
Result of the operation .