//Brad Culberson 04.23.98
//This page is my Christmas Tree.

import java.awt.*; 
import java.applet.Applet; 

public class MyApplet5 extends Applet 
   {Font font = new Font("TimesRoman",Font.BOLD,30);   
    Color brown = new Color(92,30,10);
    Color dkgreen = new Color(31,115,9);  
    Color dkblue = new Color(8,8,128);                 
    int xcoords[] = {132,148,143,159,154,170,165,181,176,192,  
                             208,203,219,214,230,225,241,236,252}; 
    int ycoords[] = {180,155,155,130,130,105,105,80,80,55, 
                              80,80,105,105,130,130,155,155,180}; 
    int numpoints = xcoords.length; 
    Polygon poly = new Polygon(xcoords,ycoords,numpoints); 
  
    public void init() 
       {setBackground(Color.white);}		

    public void paint(Graphics g) 
       {g.setFont(font); 
        g.setColor(dkblue); 
        g.drawString("Brad's Christmas Tree.",60,25);		 
	Font bradfont = new Font("TimesRoman",Font.BOLD,12);
	g.setFont(bradfont);
	g.drawString("Brad Culberson",155,250);		
        g.setColor(brown);				
        g.fillRect(187,180,10,15);		
        g.setColor(dkgreen); 
        g.fillPolygon(poly);                          
	g.setColor(Color.white);			
	g.drawArc(140,120,100,50,211,130);
	g.drawArc(140,100,100,50,222,103);
	g.drawArc(140,80,100,50,233,80);
	g.drawArc(140,60,100,50,244,56);
	g.drawArc(140,40,100,50,255,37);
	int bexes[] = {179,205,192};			
	int bwhys[] = {40,40,55};
	int bpts = bexes.length;
	g.setColor(Color.yellow);
	g.fillPolygon(bexes,bwhys,bpts);
	int texes[] = {179,205,192};			 
	int twhys[] = {50,50,35};
	int tpts = texes.length;
	g.setColor(Color.yellow);
	g.fillPolygon(texes,twhys,tpts);
	g.setColor(Color.red);
	g.fillOval(150,165,10,10);			
	g.fillOval(192,120,7,7);
	g.fillOval(200,160,10,10);
	g.fillOval(210,140,8,5);
	g.setColor(Color.white);
	g.fillOval(170,155,8,8);
	g.fillOval(234,160,5,5);
	g.fillOval(190,80,5,8);
	g.setColor(Color.orange);
	g.fillOval(200,90,5,8);
	g.fillOval(210,110,8,5);
	g.setColor(Color.yellow);
	g.fillOval(185,137,7,10);
	g.fillRect(170,120,5,5);
	g.setColor(Color.blue);
	g.fillOval(215,160,9,9);			
	g.fillOval(180,95,5,9);				
        } 
     } 
