Nu/Nu.Math/Color.cs
/// <summary>
/// Multiplies a color by an integer scalar.
/// </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 an integer scalar.
Multiplies a color by an integer scalar .
public static void Multiply(ref Color color, float scale, out Color result)
        {
            result.R = (byte)(color.R * scale);
            result.G = (byte)(color.G * scale);
            result.B = (byte)(color.B * scale);
            result.A = (byte)(color.A * scale);
        }
public static void Multiply ( ref Color color , float scale , out Color result ) { result . R = ( byte ) ( color . R * scale ) ; result . G = ( byte ) ( color . G * scale ) ; result . B = ( byte ) ( color . B * scale ) ; result . A = ( byte ) ( color . A * scale ) ; }
Multiplies a color by an integer scalar.
Multiplies a color by an integer scalar .
Color
out
scale
float
None
color
None
result
Result of the operation.
Result of the operation .