#include "svg.h"

int main(void) {
    int i;

    start();
    rulers();
    flowerSymbol("flower");                                 //花柄を呼び出すための規定

    fill(0xffff00);
    stroke(0x0000ff);
    strokeWeight(1);

    fill(0x00ff00);                                         //字の色を決定
    textFont("Verdana", 12);                                //字のフォントを決定
    text("Kagawa", 25, 105);                                //テキスト文章
    text("Univ.", 33, 120);
    text("Kagawa", 122, 102);
    text("Lab", 135, 117);
    text("Open", 222, 102);
    text("Campus", 222, 117);
                

    translate(48, 105);

    for (i=0; i<12; i++) {                                          //左側の図形を描写
        stroke(hsb1((i*2)/29.0, 1, 1));
        fill(hsb1((i*2)/29.0, 1, 1));
        rotate(PI/6);
        use("#flower", 18, 18, 18, 18);
    }

    translate(200, 0);
    for (i=0; i<24; i++) {                                          //右側の図形を描写
        stroke(hsb1((i*2)/29.0, 1, 1));
        fill(hsb1((i*2)/29.0, 1, 1));
        rotate(PI/12);
        use("#flower", 18, 18, 18, 18);
    }

    translate(-100, 0);
    for (i=0; i<18; i++) {                                          //真ん中の図形を描写
        stroke(hsb1((i*2)/29.0, 1, 1));
        fill(hsb1((i*2)/29.0, 1, 1));
        rotate(PI/9);
        use("#flower", 18, 18, 18, 18);
    }

    finish();               
    return 0;
}
