import java.awt.*;
import java.util.*;

public class Tamara1 extends BufferedApplet
{
   int click = 0;
   public void render(Graphics g)
   {
      int w = bounds().width, h = bounds().height;
      g.setColor(Color.black);
      g.fillRect(0,0,w,h);
      g.setColor(new Color(128,0,255));
      g.setColor(Color.red);
      for (int r = click++ % 10 ; r < w ; r += 10)
         g.drawOval(w/2-r, h/2-r, 2*r, 2*r);
      int s = (int)(4*Math.sin(.3 * click));
      int x[] = {w/2-18-s,w/2+18+s,w/2}, y[] = {h/2,h/2,h/2+20+s/2};
      g.setColor(Color.red);
      g.fillOval(w/2-19-s,h/2-15-s,20+s,20+s);
      g.fillOval(w/2-1,h/2-15-s,20+s,20+s);
      g.fillPolygon(x,y,3);
   }
}