Create Custom Color Using HSB
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
public class CreateCustomColorUsingHSB extends
Applet
{
public void paint(Graphics g)
{
Color customColor =
Color.getHSBColor(0.9f,0.5f,0.8f);
this.setForeground(customColor);
g.drawString("This is a custom HSB
color", 10, 50);
}
}
No comments:
Post a Comment