mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-24 21:48:35 +01:00
Compare commits
5 commits
f24ad5025c
...
28a928ec2c
Author | SHA1 | Date | |
---|---|---|---|
28a928ec2c | |||
18a62f5ca3 | |||
18517c75bd | |||
51afefbfc8 | |||
3c74cc4845 |
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue