creating custom colors in java?

teck9

Limp Gawd
Joined
Jul 17, 2002
Messages
265
im looking to make some custom colors by mixing of different colors and adjusting the brightness...ect

does anyone know the format/ code in java for doing this?
 
Originally posted by ameoba
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Color.html


It just uses RGB values (either 8b integer or float). Once you know the values, you can just toss the color in like you would one of the named constant colors...



i know what u mean by RGB values, but im not sure how exactly to implement it, could u give me an example for setting a background of a JPanel to a specific custom color other then the standard java colors (white, blue, yellow....ect)

thanks
 
Back
Top