Graphic Java

The student will probably want to take a closer look at the last two arguments sent to the fillArc method before attempting to complete this activity. The fifth argument sent to fillArc signifies the starting point of the arc. Normally the student might expect 0 degrees to correspond to the top of a circle, but this is not the case with fillArc. With fillArc 0 degrees corresponds to the right side of a circle (three o'clock on a clock) and 90 degrees corresponds to the top of a circle (12 o'clock on a clock).

The sixth parameter represents what portion of the circle is drawn in the arc. The arc continues however many degrees counter-clockwise from the starting point. Since there are 360 degrees in a full circle, 90 degrees would represent a quarter circle, 45 degrees would represent an eighth of a circle, etc.

So, the call:

   g.fillArc(40,40,40,40,180,90);
would draw a quarter of a circle from the nine o'clock position to the six o'clock position (remember the rotation is counter clockwise).
EXAMPLE: The student will create an applet like the one shown here. This activity provides the student with practice using the fillArc method.
x

ASSIGNMENT:
Recreate the applet shown above using the fillArc method.