> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.8coaU2lVjez/rev.307
 * 
 * authors: 
 *   Raquel Correia

 * 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, "aleatorio", created by Laura Ferreira & [unnamed author]
// http://dflab.sketchpad.cc/sp/pad/view/ro.9Ncm9GC$9vdrBg/rev.556


float px;
float py;
 
 
int primeirorgb;
int segundorgb;
int terceirorgb;
 
 
void setup () {
    background (0);
    size (400,400);
    frameRate (20);
    px = random (width);  //  valor aleatorio da largura do size
    py = random (height); //  valor aleatorio da altura do size
    
}
 
void draw () {
    float npx = random (width);
    float npy = random (height);
    stroke (primeirorgb, segundorgb, terceirorgb);
    line(py, px, npx, npy);
    npx = npy;
    py = px;
    
}
 
void mousePressed () {
    primeirorgb = random (255);
    segundorgb = random (255);
    terceirorgb = random (255);
}