previous |
start |
next
Colors
- Specify red, green, blue between 0.0F and 1.0F
Color magenta = new Color(1.0F, 0.0F, 1.0F)
- Standard colors
Color.black
Color.yellow
Color.pink
. . .
- Set color in graphics context:
g2.setColor(Color.pink);
- Then draw or fill shapes
g2.fill(easterEgg);
previous |
start |
next