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

  public class Star extends Applet
     {
       int xo,yo,num,grand;
       double reductor,ap,al;

         public void init(){
             num=9;
             xo=150;
             yo=150;
             grand=80;             
             reductor=35;
             ap=2*(Math.PI)/4;
             setBackground(Color.blue);
         }
        
         public void paint(Graphics g){
               g.setColor(new Color(12,15,56));
               g.fillOval(30,20,250,250);
               
               g.setColor(Color.white); 
               
               Polygon P;
               P=new Polygon();
               int i,x1,y1;
               for(i=1;i<=num; i++ )
                 {
                   x1=(int)(xo - (grand*Math.cos(ap)));
                   y1=(int)(yo - (grand*Math.sin(ap)));
	 P.addPoint(x1,y1);
	           {
	               ap-=(Math.PI)/num;
	               x1=(int)(xo + ((grand-reductor)*(Math.cos(ap))  )    );
                                 y1=(int)(yo + ((grand-reductor)*(Math.sin(ap))  )    );
                                 P.addPoint(x1,y1);
                                 ap-=(Math.PI)/num;
                              }
                 }
              
              g.fillPolygon(P);  
              
             }
             
        
          
     }