Method | Description | |
---|---|---|
ClosestColorHsb ( List |
Weighed distance using hue, saturation and brightness.
|
|
ClosestColorHue ( List |
Closest match for hues only.
|
|
ClosestColorRgb ( List |
Closest match in RGB space.
|
|
ColorDiff ( Color c1, Color c2 ) : int |
Gets the distance in the RGB space.
|
|
ColorNum ( Color c ) : float | ||
ConvertHsvToRgb ( double h, double s, double v, double alpha ) : Color |
Converts an HSV color to an RGB color.
|
|
ConvertRgbToHsv ( int r, int b, int g ) : |
Converts an RGB color to an HSV color
|
|
ConvertRgbToHsv ( this color ) : |
Converts an RGB color to an HSV color
|
|
GenerateHsvSpectrum ( ) : List |
Generates a list of colors with hues ranging from 0-360 and a saturation and value of 1.
|
|
GetBrightness ( this c ) : int | ||
GetBrightness2 ( this c ) : double | ||
GetBrightness3 ( this color ) : float | ||
GetHue ( this color ) : float | ||
GetHueDistance ( float hue1, float hue2 ) : float |
Gets the distance between two hues.
|
|
GetLuminance ( Color c ) : float |
Color brightness as perceived.
|
|
GetSaturation ( this color ) : float | ||
IsEnoughContrast ( this color1, Color color2 ) : bool |
public static ClosestColorHsb ( List |
||
colors | List |
|
target | Color | |
return | int |
public static ClosestColorHue ( List |
||
colors | List |
|
target | Color | |
return | int |
public static ClosestColorRgb ( List |
||
colors | List |
|
target | Color | |
return | int |
public static ColorDiff ( Color c1, Color c2 ) : int | ||
c1 | Color | Color 1 |
c2 | Color | Color 2 |
return | int |
public static ConvertHsvToRgb ( double h, double s, double v, double alpha ) : Color | ||
h | double | Hue |
s | double | Saturation |
v | double | Value |
alpha | double | Alpha |
return | Color |
public static ConvertRgbToHsv ( int r, int b, int g ) : |
||
r | int | Red |
b | int | Blue |
g | int | Green |
return |
public static ConvertRgbToHsv ( this color ) : |
||
color | this | Color |
return |
public static GetBrightness2 ( this c ) : double | ||
c | this | |
return | double |
public static GetBrightness3 ( this color ) : float | ||
color | this | |
return | float |
public static GetHueDistance ( float hue1, float hue2 ) : float | ||
hue1 | float | Hue 1 |
hue2 | float | Hue 2 |
return | float |
public static GetLuminance ( Color c ) : float | ||
c | Color | The Color |
return | float |
public static GetSaturation ( this color ) : float | ||
color | this | |
return | float |
public static IsEnoughContrast ( this color1, Color color2 ) : bool | ||
color1 | this | |
color2 | Color | |
return | bool |