#include "svg.h"

int main(void) {
    int i,j;
    double x, y, h;

    start();                                    //描画開始
    rulers();                                   //ブックカバー用の線を引く
                
    fill(0xffff00);                             //塗りつぶしの色指定
    stroke(0x0000ff);                           //線の色を指定

    noFill();                                   //塗りつぶしなし
    strokeOpacity(0.4);                         //透明度指定
    strokeWeight(1);
    for (j=1;j<20;j++){                         //ランダムに円を描写させていく
        for (i=0;i<7;i++){
            x = randomInRange(30, 270);         //指定範囲内でランダムに値を発生させる
            y = randomInRange(40, 160);
            h = randomInRange(0, 1);
            stroke(hsb1(h, 1, 1));              //円の色を指定
            ellipse(x, y, j, j);                //円の描写
        }
    }
    
    fill(0x0000ff);
    textFont("Times New Roman", 10);
    text("YYYY MM DD", 225, 40);                //指定座標に日付を描写
    
    fill(0x0000ff);
    textFont("Times New Roman", 10);
    text("Kagawa University", 180, 160);
                
    fill(0x0000ff);
    textFont("Times New Roman", 10);
    text("OpenCampus YYYY", 195, 175);
    
    finish();                                   //描画修了
    return 0;
}
