> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://designuniandes.sketchpad.cc/sp/pad/view/ro.v4Jwikb3yb0/rev.39
 * 
 * authors: 
 *   Mayck Cuellar
 *   Hernando Barragan

 * 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, "Assignment 3: Movement", created by Hernando Barragan
// http://designuniandes.sketchpad.cc/sp/pad/view/ro.B7dgIfNu$GCReL/rev.1




float x=200;
float y=200;

float arc=6.2;
float pii=3.14;

void setup(){
size(400,400);
}
void draw(){ //hace las instrucciones y las vuelve a ejecutar
 background(220);
 fill(255);
  noStroke();
 ellipse(200, 200, 300, 300, 3.14, 6.2);
 
 rect(50, 200, 300, 300);
 

 
 fill(0);
 
 ellipse(150,100,50,50);
 
  ellipse(250,100,50,50);
 
 fill(255,0,0);
ellipse(200, 200, 200, random(100));

if(x>0){
  fill(x);
ellipse(200, 200, x, y, pii, arc);
}
else{
  
  pii=pii+0.3;
  arc=arc+0.3;
x=random(200);
y=random(200);
}


x=x-1;
y=y-1;
}