import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JApplet;

public class Squiral extends JApplet {
	private final int SEGMENT_LENGTH = 10;

	public void init() {
		setSize(800, 800);
		setBackground(Color.WHITE);
	}

	public void paint(Graphics g) {
		g.setColor(Color.WHITE);
		g.fillRect(0, 0, 2000, 2000);
		Graphics2D g2d = (Graphics2D) g;
		g2d.setStroke(new BasicStroke(3));

		int xCenter = getWidth() / 2;
		int yCenter = getHeight() / 2;

		g2d.setColor(Color.BLUE);
		
		// Start drawing squiral
	}
}