http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Color.html
javaNoob me = new javaNoob();<br />String i = "i";<br />i += "love java!";
ramya narayanan wrote:
Meanwhile how did you know of the parameters
new Color(0,0,182,155)
And to get the rgb values of a Color that you want, use a Color Picker.
Or try it out on MS Paint or even Word.
The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by a ColorSpace. Every color has an implicit alpha value of 1.0 or an explicit one provided in the constructor. The alpha value defines the transparency of a color and can be represented by a float value in the range 0.0 - 1.0 or 0 - 255. An alpha value of 1.0 or 255 means that the color is completely opaque and an alpha value of 0 or 0.0 means that the color is completely transparent. When constructing a Color with an explicit alpha or getting the color/alpha components of a Color, the color components are never premultiplied by the alpha component.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Swastik