> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.t4CgojjXGBL/rev.617
 * 
 * authors: 
 *   Patricia Gomes

 * 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, "Adriana Barros - 02 dinâmica", created by adriana barros
// http://dflab.sketchpad.cc/sp/pad/view/ro.9XZ7eDxJjmyjEy/rev.1120

// posição inicial
float x = 0;
float y = 150;
 
// posição final
float end_x = 300;
float end_y = 150;
 
// vector de deslocamento
float vx = 1;
float vy = 0;
 


// as instruções que estiverem dentro desta função setup() 
// correm uma vez quando o programa arranca

void setup() {  

    
    // tamanho da tela
    size(600, 300); 

    // cor de fundo
    background();

   

} 

// as instruções que estiverem dentro desta função draw
// são executadas a cada novo frame

void draw() {
    
    background(220);
    noStroke()
    fill(500, 0, 0,50);
    rectMode(CENTER);
    float sz = frameCount % 235;
    rect(width/10, height/2, 240 + sz, 240 + sz);
    
    
    noStroke();
    fill (150,50,100);;
    ellipse (100, 150, 40, 40);
    
    noStroke();
    fill (150,50,100);;
    ellipse (200, 150, 40, 40);
    
    noStroke();
    fill (150,50,100);;
    ellipse(300, 150, 80, 80);

    
    noStroke();
    fill (150,50,100);;
    ellipse (400, 150, 40, 40);
    
    noStroke();
    fill (150,50,100);;
    ellipse (500, 150, 40, 40);
    
    noStroke();
    fill(222, 102, 0,90);
    rectMode(CENTER);
    float sz = frameCount % 235;
    rect(width/10, height/2, 3 + sz, 3 + sz);
    
    noStroke()
    fill(500, 0, 0,50);
    rectMode(CENTER);
    float sz = frameCount % 235;
    rect(width/2, height/2, 240 + sz, 240 + sz);
    
    noStroke();
    fill(222, 102, 0,90);
    rectMode(CENTER);
    float sz = frameCount % 235;
    rect(width/2, height/2, 3 + sz, 3 + sz);
    
    noStroke()
    fill(500, 0, 0,50);
    rectMode(CENTER);
    float sz = frameCount % 235;
    rect(width/1, height/2, 240 + sz, 240 + sz);
    
    noStroke();
    fill(222, 102, 0,90);
    rectMode(CENTER);
    float sz = frameCount % 235;
    rect(width/1, height/2, 3 + sz, 3 + sz);
}