Constructor Color(float r, float g, float b, float a)
Member of: java.awt.Color
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 imageGraphics.setColor(new Color(0,0,0,(float) 0.5));
2 imageGraphics.setColor(new Color(0,0,0,(float) 0.5));
3 component.setBackground(new Color(0f,0f,0f,0f));
4 setBackground(new Color(0.0f,0.0f,0.0f,0.0f));
5 g.setColor(new Color(1f,1f,1f, 0.4f)); // .5 is a bit too light
6 g.setColor(new Color(0.0f, 0.0f, 0.0f, 0.25f));
7 g.setColor(new Color(1.0f, 1.0f, 1.0f, 0.5f));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.