> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://studio.sketchpad.cc/sp/pad/view/ro.QhO1LTNc0W0/rev.514
 * 
 * authors: 
 *   Claudio Pinho

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



// This sketch builds on a prior work created by Claudio Pinho
// http://studio.sketchpad.cc/sp/pad/view/JVaLQHMz6Y/rev.154

int circleSize = 0;
int x1, y1, x2, y2 = 0;

void setup(){
    size(200, 200);
    frameRate(2);
}

void draw(){
    background(50);
    for(int i = 0; i < 10; i = i + 1){
        x2 = random(12, 188);
        y2 = random(12, 188);
        circleSize = random(3, 25);
        stroke(random(0,254), random(0,254), random(0,254));
        fill(random(0,254), random(0,254), random(0,254));
        ellipse(x2, y2, circleSize, circleSize);
        if(i != 0){ line(x1, y1, x2, y2);}
        x1 = x2;
        y1 = y2;
    }
}