This environment is the same as the one used in simple-graphics and the Flag
assessment. It gives you access to the
full java.awt.Graphics
API. Your code’s draw method will be called with
a Graphics object, a width, and a height and can use any of the
methods on the Graphic object to draw an image. The image will
be generated and returned to this webpage and displayed on the right. You
should use the width and height arguments to make your code resilliant in
the face of changing window sizes.
For the final project, you may make whatever artistic creation you want. Feel free to look at the docs linked above and see if you can figure out some other methods to use.
If you want to get really advanced, you can take advantage of the fact that
the Graphics object is actually a
Graphics2D
object which supports yet more methods. The starter code contains a line
that defines a new variable g2 which the compiler knows is
a Graphics2D object so you can use the extra methods provided
by that class.