Create Custom Color Using HSB - Java 2D Graphics

Java examples for 2D Graphics:Color HSB

Description

Create Custom Color Using HSB

Demo Code

 
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
}

Related Tutorials