Java Color.HSBtoRGB(float hue, float saturation, float brightness)
Syntax
Color.HSBtoRGB(float hue, float saturation, float brightness) has the following syntax.
public static int HSBtoRGB(float hue, float saturation, float brightness)
Example
In the following code shows how to use Color.HSBtoRGB(float hue, float saturation, float brightness) method.
//from w w w .ja v a 2s .c om
import java.awt.Color;
public class Main {
public static void main(String[] args) {
int rgb = Color.HSBtoRGB(1.0f, 1.0f, 1.0f);
System.out.println(rgb);
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »