#include "svg.h"

int main(void) {
    int i,j;
    double x, y, h;

    start();
    rulers();
    flowerSymbol("flower");
            
    fill(0xffff00);
    stroke(0x0000ff);
    strokeWeight(1);

    noFill();
    strokeOpacity(0.3);
    strokeWeight(1);
    for (j=1;j<6;j++){
        for (i=0;i<7;i++){
            x = randomInRange(30, 270);
            y = randomInRange(40, 160);
            h = randomInRange(0, 1);            
            stroke(hsb1(h, 1, 1));
            
         	  translate(270-x,160-y);              
          	beginShape();
        		vertex(20, 50-20);
        		vertex(20-12, 50+15);
        		vertex(20+18, 50-8);
        		vertex(20-18, 50-8);
        		vertex(20+12, 50+15);
        		endShape(1);
          	translate(x-270,y-160);
        }
    }
                                                    
    fill(0x0000ff);
    textFont("Times New Roman", 10);
    text("Kagawa University", 180, 160);
            
    fill(0x0000ff);
    textFont("Times New Roman", 10);
    text("OpenCampus", 195, 175);
            
    finish();               
    return 0;
}

