import static util.SVGUtil.*;

public class Shiraga1 {
	public static void main(String[] args){
		int i, angle = 50;

		start();
		rulers();

		noFill();
		
		pushMatrix();
		translate(centerX()-60, centerY());
		scale(0.5, 0.5);
		for(i = 0; i < 40 ;i++){
			stroke(hsb360(i * 18, 100, 100));
			pushMatrix();

			rotate360((i * 27) + angle);
			translate(5, 0);

			bezier(0,0, 15 + i,-20 - 2*i, 40 + 3*i, 80 - 2*i, 60,60);
			popMatrix();
		}
		popMatrix();
		
		pushMatrix();
		translate(centerX()+60, centerY());
		scale(0.5, 0.5);
		for(i = 0; i < 40 ;i++){
			stroke(hsb360(i * 9, 100, 100));
			pushMatrix();

			rotate360((i * 27) + angle);
			translate(5, 0);

			bezier(0,0, 15 + i, -20 + 2*i, 40 + 3*i, 40 - 2*i, 60,60);
			popMatrix();
		}
		popMatrix();

		finish();
		return;
	}
}