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
EqualsIgnoreAlpha(Color, Color)
Compares two colors ignoring the alpha channel and the name
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