package sample.svg.contributed;
import static util.SVGUtil.*;

public class RainBow {

    public static void main(String[] args) {
        start();
                
        fill(0xadff2f);
        upperBar(3);
        fill(0x00ff00);
        lowerBar(3);
                
        double x,y,w,h;
        x=150;y=150;
        w=210;h=200;
        int[] color={0xff0000,0xffa500,0xffff00,0x008000,
                     0x00ffff,0x0000ff,0x800080,0xff0000,
                     0xffa500,0xffff00};
                
                
        for(int 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);
        strokeWeight(0); 
        textFont("Verdana", 12);
        text("Kagawa Univ.", 20, 40);
                
        finish();
        return ;
    }
}
