> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://hewitt.sketchpad.cc/sp/pad/view/ro.REccyQtwkYH/rev.2
 * 
 * authors: 
 *   Alexa Presto

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



int x, y;
int w, h; 
int change=2;
void setup() {
  size(700,700);
  background(255);
  noStroke();
  smooth();
  w=20;
  h=20;
  frameRate(30);
}

void draw() {
  if (mousePressed){
  w+=change;
   h+=change;
  circles();
  }
    if (w>200||w<0){
  change=-change;
}
  //nothing in draw but we still need it to loop continuously
}

void circles() {
  fill (random(255),random(255),random(255));
  for (int i = 0; i <10;i++){
  ellipse (mouseX+random(-300,300), mouseY+random(-300, 300), w, h);
  }
}