import static util.SVGUtil.*;

public class Matsu2 {
	public static void main(String[] args) {
		int i;
		double fontSize = 15;                         // ★ 字の大きさ
		String text = "Kagawa Univ.";                 // ★
		int len = text.length();
		int n = 40;                                   // ★ 個数
		start();
		rulers();

		noStroke();
		fillOpacity(0.3);
		
		textFont("Arial", fontSize);
		for (i=0; i<n; i++) {
			double x, y, h;
			x = randomInRange(10, pageWidth()-10-fontSize*len/2);
			y = randomInRange(30+fontSize, pageHeight()-30);
			h = randomInRange(0, 1);
			fill(hsb1(h, 1, 1));
			text(text, x, y);
		}

		finish();
		return;
	}
}
