> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://fgcs.sketchpad.cc/sp/pad/view/ro.5q22jfJHOFT/rev.383
 * 
 * authors: 
 *   Markus Roberts

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



// Pressing Control-R will render this sketch.

void setup() {  // this is run once.   
    
    // set the background color
    background(150);
    
    // canvas size (Integers only, please.)
    size(1000, 1000); 
      
    // smooth edges
    smooth();
    
    // limit the number of frames per second
    frameRate(60);
} 

void draw() {  // this is run repeatedly.  
    if (mousePressed) {
      for (int i=0;i<10;i++) {
        // set the color to some random translucent color
        fill(random(125), random(255), random(255), 20);
        noStroke();
        // pick a random point near the mouse
        int x = mouseX+random(-15,15)+random(-15,15),
            y = mouseY+random(-15,15)+random(-15,15);

        // draw a circle there
        ellipse(x,y,6,6);
      }
    }
}