1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-29 03:23:37 +02:00

removed unnecessary Math.Abs from Color.Invert

This commit is contained in:
Ell 2021-12-11 00:38:28 +01:00
parent 3c74cc4845
commit 51afefbfc8

View file

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