Esempio n. 1
0
 public static float AvgRGB(Color c)
 {
     return((float)XnaColorHelpers.SumRGB(c) / 3f);
 }
 public static Color BlendInto(Color to, Color from)
 {
     return(XnaColorHelpers.Mul(to, from));
 }
Esempio n. 3
0
 public static float AvgRGBA(Color c)
 {
     return((float)XnaColorHelpers.SumRGBA(c) * 0.25f);
 }
 public static float Brightness(Color value)
 {
     return(XnaColorHelpers.BrightnessRGB(value));
 }