> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.6$23HqFWM$$/rev.138
 * 
 * authors: 
 *   Bruno Goncalves

 * 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 = 150;
float speed = 5;
float acceleration = 0.1;  
 
void setup() {
    
size(500,500);
frameRate(20);  
x = width/1;
y = height/1;
 
}
 
void draw() {
background(0);
 
fill(250,0,0);
ellipse(x,y,100,100);
ellipse(x,x,100,100)
ellipse(y,x,100,100)
ellipse(y,y,100,100)
  
  
  
  
 
 
x = x + speed;
  
speed = speed + acceleration;
  
if (x > height) {
x = 50;
y = x + 50;
  }
  if (y > width) {
    y = 50 }
 
}