Method | Description | |
---|---|---|
Blend ( this bg, |
Blends two colors.
|
|
ColorFromHSV ( float hue, float saturation, float value, byte alpha = 255 ) : |
Creates a CorsairColor object from the respective hsv-float-values in the range [0..1].
|
|
CreateColorFromFloat ( float a, float r, float g, float b ) : |
Creates a CorsairColor object from the respective rgb-float-values in the range [0..1].
|
|
GetFloatA ( this color ) : float |
Converts the alpha-value of the CorsairColor to a float value in the range [0..1].
|
|
GetFloatB ( this color ) : float |
Converts the blue-value of the CorsairColor to a float value in the range [0..1].
|
|
GetFloatG ( this color ) : float |
Converts the green-value of the CorsairColor to a float value in the range [0..1].
|
|
GetFloatR ( this color ) : float |
Converts the red-value of the CorsairColor to a float value in the range [0..1].
|
|
GetHSVHue ( this color ) : float |
Gets the hue-value (HSV-color space) of the color.
|
|
GetHSVSaturation ( this color ) : float |
Gets the saturation-value (HSV-color space) of the color.
|
|
GetHSVValue ( this color ) : float |
Gets the value-value (HSV-color space) of the color.
|
|
GetIntColorFromFloat ( float f ) : byte |
Converts the given float-value to a integer-color in the range [0..255].
|
public static Blend ( this bg, |
||
bg | this | The background-color. |
fg | The foreground-color | |
return |
public static ColorFromHSV ( float hue, float saturation, float value, byte alpha = 255 ) : |
||
hue | float | The hue of the color. |
saturation | float | The saturation of the color. |
value | float | The value of the color. |
alpha | byte | The alpha of the color. |
return |
public static CreateColorFromFloat ( float a, float r, float g, float b ) : |
||
a | float | The alpha-value in the range [0..1]. |
r | float | The red-value in the range [0..1]. |
g | float | The green-value in the range [0..1]. |
b | float | The blue-value in the range [0..1]. |
return |
public static GetFloatA ( this color ) : float | ||
color | this | The color to take the alpha-value from. |
return | float |
public static GetFloatB ( this color ) : float | ||
color | this | The color to take the blue-value from. |
return | float |
public static GetFloatG ( this color ) : float | ||
color | this | The color to take the green-value from. |
return | float |
public static GetFloatR ( this color ) : float | ||
color | this | The color to take the red-value from. |
return | float |
public static GetHSVHue ( this color ) : float | ||
color | this | The color to take the hue from. |
return | float |
public static GetHSVSaturation ( this color ) : float | ||
color | this | The color to take the saturation from. |
return | float |
public static GetHSVValue ( this color ) : float | ||
color | this | The color to take the value from. |
return | float |
public static GetIntColorFromFloat ( float f ) : byte | ||
f | float | The float color-value |
return | byte |