Graphic JavaScript

Back to index


A circle specified by the arc(x,y,r,s,e) can be rendered filled or as an outline depending on whether it is followed by a call to fill or stroke.

EXAMPLE:
This image is an approximation of what the student will be expected to create. No code will be offered since the student will need to experiment with the use of the arc method to successfully complete this activity.
ASSIGNMENT:
The student will recreate the snowman applet shown on this page. Here's some basic information to help the student. The eyes have a diameter of 5 (they may look a little squared-off, but they are really circles), the buttons have a diameter of 10, the head has a diameter of 40, the middle of the body has a diameter of 60, and the bottom of the snowman has a diameter of 80. The mouth is simply an oblong oval (aka, ellipse).