#include "svg.h"

int main(void) {
    int i;
    
    start();                                    //描画開始
    rulers();                                   //ブックカバー用の線を引く
    
    noStroke();                                 //塗りつぶしなし
    fillOpacity(0.3);                           //透明度指定
    
    for (i=0; i<100; i++) {                     //ランダムに文字をを描写させていく
        double x, y, h;
        x = randomInRange(30, 257);             //指定範囲内でランダムに値を発生させる
        y = randomInRange(40, 180);
        h = randomInRange(0, 1);
        fill(hsb1(h, 1, 1));                    //文字の色を指定
        text("Kagawa Univ.", x, y);             //ランダムに指定した座標に文字を描写
    }
    
    finish();                                   //描画終了
    return 0;
}
