#include "svg.h"

int main(void) {
    int i;
    double x=150, y=150, w=210, h=200;
    int color[]={0xff0000,0xffa500,0xffff00,0x008000,
                 0x00ffff,0x0000ff,0x800080,0xff0000,
                 0xffa500,0xffff00};	//虹の色　外側⇒内側(最後の１つが最内部)

    start();
    rulers();
        
    fill(0xadff2f);	//線の色
    upperBar(3);	//上部の線
    fill(0x00ff00);
    lowerBar(3);	//下部の線
        
    for(i=0; i<10; i++) {
        stroke(color[i]);	//虹の色の出方
        strokeWeight(10);	//文字(虹の太さ)
        noFill();
        arc(x, y, w, h, PI, 2*PI);	//虹の描画
        w-=20; h-=20;
    }
        
    fill(0x008b8b);	//文字の中心(内部)　文字色とあわせることを推奨
	stroke(0x0000ff);	//文字の色
	strokeWeight(0);
    textFont("Verdana", 12);	//文字の種類と大きさ
    text("Kagawa Univ.", 20, 40);	//文字位置
        
    finish();
    return 0;
}
