> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://codigodelaimagen.sketchpad.cc/sp/pad/view/ro.WOJbPbHQUsq/rev.571
 * 
 * authors: 
 *   pequenoestudio

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



void setup() {  // inicialización
    background(255);
    
    size(500, 500); 
    // este es el comportamiento por defecto loop();
    
    //noloop();
    frameRate(4);
} 

void keyReleased() {  
  if (key == 's' || key == 'S') saveFrame("miImagen.png");
}
        
        
void draw() {  // redibujado   
// mientras se cumpla la condicion (boolean) repite el proceso o código entre llaves

    background(255);
    
    int contador=0;
    int limite=100;

    while(contador<limite){
        strokeWeight(random(20));
        stroke(random(255,100,30), 100,40,150);
        
        line(random(500), random(500),random(100),random(100));
        
        strokeWeight(random(20));
        stroke(random(200,15,30), 10,80,200);
        
        line(random(500), random(500),random(500),100);
        
        strokeWeight(random(30));
        stroke(random(100,0,250), 10,60);
        
        line(random(200), random(200),random(500),random(500));
        
    

        contador=contador+1;
}
}