import static util.SVGUtil.*;

public class Star {
	public static void main(String[] args) {
		int i, j, angle;
		double x, y, h, r=12;

		start();
		rulers();

		fill(0xffff00);
		stroke(0x0000ff);
		strokeWeight(1);

		noFill();
		strokeOpacity(0.3);
		strokeWeight(1);

		for (i=0; i<42; i++){
			x = randomInRange(30, pageWidth()-30);
			y = randomInRange(40, pageHeight()-40);
			h = randomInRange(0, 1);            
			stroke(hsb1(h, 1, 1));

			pushMatrix();
			translate(x, y);              
			beginShape();
			for (j=0, angle=90; j<5; j++, angle+=144) {
				vertex(r*cos360(angle), -r*sin360(angle));
			}
			endShape(true);
			popMatrix();
		}



		fill(0x0000ff);
		textFont("Times New Roman", 10);
		text("Kagawa University", 180, 160);

		fill(0x0000ff);
		textFont("Times New Roman", 10);
		text("OpenCampus", 195, 175);

		finish();               
		return;
	}
}
