예제 #1
0
 /// <summary>
 /// Multiplies 2 colours in linear colour space.
 /// </summary>
 /// <param name="first">First factor.</param>
 /// <param name="second">Second factor.</param>
 /// <returns>Product of first and second.</returns>
 public static SRGBColour operator *(SRGBColour first, SRGBColour second)
 {
     return(new SRGBColour {
         Linear = Color4Extensions.Multiply(first.Linear, second.Linear)
     });
 }