#include <stdio.h>
#include <math.h>
#include "svg.h"

int main(void){
    int i, angle = 27, x = 2;
    int j;
    double randx, randy, randh;

    start();
    fill(rgb255(148,189,94));
    guideBars(1);

    noFill();

    for (j=0; j<4; j++){
        resetMatrix(); 
        randx = randomInRange(10, 350);
        randy = randomInRange(30, 160);
        translate(randx, randy);

        for (i=0; i<25 ;i++) {
            stroke(hsb1(i/29.0, 1, 1));

            pushMatrix();

            rotate(radians(i*angle));
            translate(i*x, 0);

            randh = randomInRange(0, 1);
            fill(hsb1(randh, randx, randy));
            fillOpacity(randh);
            line(0, 0, i*3, i*3);
            noStroke();
            ellipse(0, 0, 10, 10);
            popMatrix();
        }
    }

    finish();
    return 0;
}
