Class ColorExtensions
public static class ColorExtensions
- Inheritance
-
ColorExtensions
- Inherited Members
Methods
Invert(Color, bool)
Inverts the colour, i.e. does 1 - value for each component.
public static Color Invert(this Color colour, bool invertAlpha = false)
Parameters
colour
ColorinvertAlpha
boolWhether to invert the alpha value as well.
Returns
- Color
ToHSL(Color)
public static HSL ToHSL(this Color color)
Parameters
color
Color
Returns
ToHSV(Color)
public static HSV ToHSV(this Color color)
Parameters
color
Color