Java Swing Tutorial - 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  ww  w  .  jav a2  s  .  c o m*/

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.