Hue saturation brightness (HSB) color model: In this model, hue is a number between 0.0 and 1.0. Colors used in this model are red, orange, yellow, green, blue, indigo, and violet. Saturation is used to determine light pastels to intense hues and has a value between 0.0 to 1.0. Brightness has a value between 0.0 to 1.0. 1 is for bright white and 0 is for black.
HSBtoRGB( ) method: It is used to return RGB values.
static int HSBtoRGB(float hue, float saturation, float brightness)
RGBtoHSB( ) method: It is used to return array of HSB values.
static float[ ] RGBtoHSB(int red, int green, int blue, float values[ ])