Method Invert
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Invert(Color)
Returns a new color that is this color inverted.
public static Color Invert(this Color color)
Parameters
colorColorThe color to invert.
Returns
- Color
A new color with each RGB channel replaced by (1 - channel), preserving alpha.