> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.oRLRLTNyroE/rev.120
 * 
 * authors: 
 *   Joao Berga

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




float px;
float py;
 
float jump = 50;
 
void setup() {  
    size(300, 300); 
 
    background(255);
    
    px = random (width);
    py = random (height);
} 
 

void draw() {
    strokeWeight(30)
    stroke(random(50), random(255), random(50));
    float npx = constrain (px + random (-jump, jump), 1, width);
    float npy = constrain (py + random (-jump, jump), 1, height);
        line (px, py, npx, npy);
    
    px = npx;
    py = npy;
}