1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-25 05:58:35 +01:00

Compare commits

..

No commits in common. "28a928ec2c55e068cf8fe7dd79f5517c2dc86fe0" and "f24ad5025c10aebdc020871d31fb82dc01b6252a" have entirely different histories.

View file

@ -24,7 +24,7 @@ namespace MLEM.Extensions {
/// <param name="color">The color to invert</param> /// <param name="color">The color to invert</param>
/// <returns>The inverted color</returns> /// <returns>The inverted color</returns>
public static Color Invert(this Color color) { public static Color Invert(this Color color) {
return new Color(255 - color.R, 255 - color.G, 255 - color.B, color.A); return new Color(Math.Abs(255 - color.R), Math.Abs(255 - color.G), Math.Abs(255 - color.B), color.A);
} }
} }