I am supposed to add a polygon orange nose and a polygon black hat, as well as writing to his scarf but can't figure it out. this is what I have so far. i cant seem to figure our if i need to use the fillpolygon or what.
import java.applet.Applet;
import java.awt.*;
public class SnowMan extends Applet
{
public void paint (Graphics frame)
{
// set up some constants
final int MID = 150; // middle of the snowman
final int TOP = 50; // top of the snowman
// need to set the background colors
setBackground (Color.cyan);
// color the ground
frame.setColor (Color.lightGray);
// the ground is a blue rectangle
frame.fillRect (1, 175, 500, 150) ;
// draw three large snowballs to make up snowman
frame.setColor (Color.white);
// draw head
frame.fillOval (MID - 20, TOP, 40, 40);
// draw middle (upper torso)
frame.fillOval (MID - 35, TOP + 35, 70, 50);
// draw base (lower torso)
frame.fillOval (MID - 50, TOP + 80, 100, 60);
// draw in features of snowman
frame.setColor (Color.black);
// draw eyes
// draw left eye
frame.fillOval (MID - 10, TOP + 10, 5, 5);
// draw right eye
frame.fillOval (MID + 5, TOP + 10, 5, 5);
//Draw Buttons
frame.fillOval (MID -2, TOP + 50, 5, 5);
frame.fillOval (MID -2, TOP + 60, 5, 5);
frame.fillOval (MID -2, TOP + 70, 5, 5);
// draw arms
// draw left arm
frame.drawLine (MID - 25, TOP + 60, MID - 50, TOP + 40);
// draw right arm
frame.drawLine (MID + 25, TOP + 60, MID + 55, TOP + 60);
// draw hat
// draw brim of hat
frame.drawLine (MID - 20, TOP + 5, MID + 20, TOP + 5);
frame.fillRect (MID - 20, TOP + 35, 40, 10);
// draw top of hat
frame.fillRect (MID - 15, TOP - 20, 30, 25);
frame.setColor (Color.red);
// draw mouth
frame.drawArc (MID - 10, TOP + 20, 20, 10, 190, 160);
}
}