> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://studio.sketchpad.cc/sp/pad/view/ro.ONPfZAXQJ02/rev.481
 * 
 * authors: 
 *   nicole aptekar

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   https://creativecommons.org/licenses/by-sa/3.0/ 
 */ 



// Pressing Control-R will render this sketch.
//reworking a bit from Marius Watz's class last night in sketchpad.

int i = 0; 
float a, b, dia;
float entities, minDia, numArc;

void setup() {  // this is run once.   
    

    
    // canvas size (Variable aren't evaluated. Integers only, please.)
    size(300, 300); 
      
    // smooth edges
    smooth();
    
    // limit the number of frames per second
    frameRate(30);
    
    // set the width of the line. 
    noStroke();
} 

void draw() {  // this is run repeatedly.  
    // set the background color
    background(255);
    
    entities = random(50, 300);
    minDia = random(10,100);
    
    for(int i = 0; i <entities; i++){
        
        // set the color
        fill(random(220,255), random(30), random(150), 5);
    
        a = radians(random(360));
        b = radians(random(10,20));
        if (random(100)<10) {
            b = radians(random(60,120));
        }
        
        dia = random(minDia, height);
    
        numArc = random(1,4);
        if (random(100)<5) {
            numArc = random(7,70);
        }
        
        for (int j = 0; j<numArc; j++){
            arc (width/2, height/2, dia, dia, a, a+b);
            dia = dia+4;
            b=b+.01;
        }
        
    }
    noLoop();
    
    
}

void mousePressed(){
    
    loop();
}