Table of Contents

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

color1 Color
color2 Color

Returns

bool

Interpolate(float, Color, Color)

Interpolates between two colors

[Pure]
public static Color Interpolate(float factor, Color color1, Color color2)

Parameters

factor float

The proportion of the two colors between 0 (only first color) and 1 (only second color)

color1 Color

The first color value

color2 Color

The second color value

Returns

Color