> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.jRnwWIll3d0/rev.393
 * 
 * authors: 
 *   biabv

 * 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;
int quartorgb;
int quintagb;



void setup () {
    background (5,247,2);
    size (400,500);
    frameRate (88);
    
    
}

void draw () {
    float npx = random (width);
    float npy = random (height);
    stroke (primeirorgb, segundorgb, terceirorgb);
    line(py, px, npy, npx);
    py = px;
    npx = npy; 
    
}

void mousePressed () {
    primeirorgb = random (100);
    segundorgb = random (400);
    terceirorgb = random (400);
    quartorgb = random (150)
    quintorgb = random (80)
    sextorgb = random (800)
}