Java examples for 2D Graphics:Color HSB
Create Custom Color Using HSB
import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; public class Main { public void paint(Graphics g) { Color customColor = Color.getHSBColor(0.9f,0.5f,0.8f); }// w ww. j av a2 s . co m }