Class ColorUtils
- Namespace
- OmegaEngine.Foundation.Light
- Assembly
- OmegaEngine.Foundation.dll
Convert colors to different formats, interpolate, invert, ...
public static class ColorUtils
- Inheritance
-
ColorUtils
- Inherited Members
Methods
DropAlpha(Color)
Removes the alpha channel from the color (setting it to full opacity).
[Pure]
public static Color DropAlpha(this Color color)
Parameters
color
Color
Returns
EqualsIgnoreAlpha(Color, Color)
Compares two colors ignoring the alpha channel and the name
[Pure]
public static bool EqualsIgnoreAlpha(this Color color1, Color color2)
Parameters
Returns
Interpolate(float, Color, Color)
Interpolates between two colors
[Pure]
public static Color Interpolate(float factor, Color color1, Color color2)
Parameters
factor
floatThe proportion of the two colors between 0 (only first color) and 1 (only second color)
color1
ColorThe first color value
color2
ColorThe second color value