Color.HSBtoRGB
Class Overview | Class Members |
This Package |
All Packages
public static int HSBtoRGB( float hue,
float saturation,
float brightness )
Parameters
- hue
- the hue component of the color.
- saturation
- the saturation of the color.
- brightness
- the brightness of the color.
Returns
the RGB value of the color with the indicated hue,
saturation, and brightness.
Description
Converts the components of a color, as specified by the HSB
model, to an equivalent set of values for the RGB model.
The integer that is returned by HSBtoRGB encodes the
value of a color in bits 0&endash;23 of an integer value, the same
format used by the method getRGB. This integer can be
supplied as an argument to the Color constructor that
takes a single integer argument.
See Also
getRGB, Color