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 »




BasicStroke
BorderLayout
CardLayout
Color
Cursor
Desktop
DesktopManager
DisplayMode
EventQueue
FlowLayout
FocusTraversalPolicy
Font
FontMetrics
GradientPaint
Graphics
Graphics2D
GraphicsConfiguration
GraphicsDevice
GraphicsEnvironment
GridBagConstraints
GridBagLayout
GridLayout
Image
ItemSelectable
KeyboardFocusManager
LayoutManager
LayoutManager2
Point
Rectangle
Robot
Shape
SplashScreen
SystemColor
SystemTray
TexturePaint
TrayIcon
Toolkit
Transparency