Color




The Color class has many predefined color constants and allows you to create your own color objects.

Examples:

Color myColor = new Color(red, green, blue);

Where red is an integer between 0 and 255
Where green is an integer between 0 and 255
Where blue is an integer between 0 and 255


There are also many constants:
Color.GREEN
Color.RED
Color.WHITE
Color.BLACK
etc.