> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.-aUqzxfEODj/rev.504
 * 
 * authors: 
 *   pedro coelho
 *   Monica Mendes

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



float x = 100;
float y = 0;
float speed = 20;
float acceleration = 0.5;  

void setup() {
  size(500,500);
   frameRate(50);  
  x = width/2;
  y = height/2;
}
void draw() {
  background(255);

  fill(0);
  stroke(0);
  ellipse(x,y,30,30);

  x = x + speed; 
  speed = speed + acceleration;
  
  if (x > height) {
    x = 0;
    y = y + 50;
  }
  if (y > width) {
    y = 0 }
}