Метод | Описание | |
---|---|---|
HSVtoColor ( HSV hsv ) : Color |
The hs vto color.
|
|
HSVtoColor ( int H, int S, int V ) : Color |
The hs vto color.
|
|
HSVtoRGB ( HSV HSV ) : RGB |
The hs vto rgb. HSV contains values scaled as in the color wheel: that is, all from 0 to 255. for ( this code to work, HSV.Hue needs to be scaled from 0 to 360 (it//s the angle of the selected point within the circle). HSV.Saturation and HSV.value must be scaled to be between 0 and 1. |
|
HSVtoRGB ( int H, int S, int V ) : RGB |
The hs vto rgb.
|
|
RGBtoHSV ( RGB RGB ) : HSV |
In this function, R, G, and B values must be scaled to be between 0 and 1. HSV.Hue will be a value between 0 and 360, and HSV.Saturation and value are between 0 and 1. The code must scale these to be between 0 and 255 for the purposes of this application. |
public static HSVtoColor ( HSV hsv ) : Color | ||
hsv | HSV | The hsv. |
Результат | Color |
public static HSVtoColor ( int H, int S, int V ) : Color | ||
H | int | The h. |
S | int | The s. |
V | int | The v. |
Результат | Color |
public static HSVtoRGB ( HSV HSV ) : RGB | ||
HSV | HSV | The hsv. |
Результат | RGB |
public static HSVtoRGB ( int H, int S, int V ) : RGB | ||
H | int | The h. |
S | int | The s. |
V | int | The v. |
Результат | RGB |
public static RGBtoHSV ( RGB RGB ) : HSV | ||
RGB | RGB | The R(ed)G(reen)B(lue) values |
Результат | HSV |