#include "svg.h"

int main(void){
    int i;
    double x, y, color;
        
    start();
    rulers();
                
    fill(0xe0e0e0);
    fillOpacity(1);
    rect(0, 29, 297, 152.5);

    for(i=0;i<40;i++){
        x = randomInRange(20,270);
        y = randomInRange(30,160);
        x = (int)x/10*10;
        y = (int)y/10*10;
        color = x*y/112.5;
        fill(hsb360(color, 50, 90));
        fillOpacity(1);
        rect(x, y, 20, 20);
    }
                
    for(i=0;i<120;i++){
        x = randomInRange(20,280);
        y = randomInRange(30,180);
        x = (int)x/10*10;
        y = (int)y/10*10;
        color = x*y/127.5;      
        fill(hsb360(color, 30, 100));
        fillOpacity(1);
        rect(x, y, 10, 10);
    }
                
    fillOpacity(1);
    fill(0xffffff);
    textFont("Impact", 4);
    rotate(PI/2);
    text("Faculty of Engineering, Kagawa University", 35, -10);
                
    finish();
    return 0;
}
