It changes the current drawing color to blue.
Think of the Graphics object as being like a sheet of paper,
some colored pens, and some drawing methods.
Use the following to change the color of the paper:
setBackground( Color.something )
Use the following method of the
Graphics object to
change the pen color:
setColor( Color.something )
For example, if
gr is a reference to the Graphics object,
then this changes the pen color to blue:
gr.setColor( Color.blue );
Several million colors are possible, but for now, use the pre-defined colors:
Color.red Color.orange Color.yellow Color.green Color.blue Color.magenta Color.white Color.black Color.gray Color.darkGray Color.lightGray Color.pink Color.cyan
These are static values from
the class Color.
(Look at the documentation under
Color to see how to set other colors.)
What happened to purple?