> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://studio.sketchpad.cc/sp/pad/view/ro.ygTOEkw$Gph/rev.138
 * 
 * authors: 
 *   Nicole McClean

 * 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, "Mirror drawing", created by steele-j1
// http://studio.sketchpad.cc/sp/pad/view/ro.9Sz$rDERiSeay/rev.84


//modified from work by keith Ohara
// Keith O'Hara <[email protected]>
// Feb 3 2010
// CMSC 117
float r;
 
void setup()
{
  size(800, 400);
  smooth(100);
  strokeWeight(5);
  background(50,390,600);
  stroke(4);
  fill(200);
}
 
void draw()
{ 
 
  if (keyPressed)
  {
    background(600);

  }
 
  if (mousePressed)
  {
    r = random(10, 50);
    ellipse(mouseX, mouseY, r, r);
    ellipse(width-mouseX, mouseY, r, r);
  }
}