import java.awt.*;
import java.applet.*;

public class Dipolfeld extends Applet
{
	int flaggen = 4;
	int startX = 50, startY = 50;
	int x = startX, y = startY;
	int zoom = 5;
	int startSize = 10;
	int size = startSize;
	int startAbstand = 5 * size;
	int abstand = startAbstand;


    public void init()
    {
		setBackground(Color.yellow);
    }


    public void paint(Graphics g)
    {

		for(int i=0; i<flaggen; i++)
		{
			new Flagge(x,y,size,g);
			size = size + zoom;
			abstand = 5*size;
			x = x+abstand;
			y=y+abstand;
		}
		x = startX;
		y = startY;
		size = startSize;
		abstand = startAbstand;
    }

	public void update(Graphics g)
	{
		paint(g);
	}
}
