#include <stdio.h>
#include <math.h>
#include "svg.h"


int main(void){
    int i;
    
    start();
    rulers();

    fill(0xffff00);
    stroke(0x0000ff); //文字色
    strokeWeight(1);

    fill(0x00ff00);
    textFont("Verdana", 12);   //文字フォント
    text("Kagawa Univ.", 20, 50);  //文字内容

    translate(74, 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);                     //図形の位置
        rect(20, 20, 20, 20);             //図形の円形の大きさ等
    }

    translate(150, 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);
        rect(20, 20, 20, 20);
    }

    finish();
    return 0;
}
