/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.yVKYHg$qL$v/rev.17
*
* authors:
* patriciatimoteo
* 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
// 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(400);
}
// as instruções que estiverem dentro desta função draw
// são executadas a cada novo frame
void draw() {
background(800);
noStroke()
fill(300, 0, 0,50);
rectMode(CENTER);
float sz = frameCount % 900;
rect(width/2, height/2, 240 + sz, 240 + sz);
noStroke();
fill (500, 0, 0,50);;
ellipse (10, 150, 40, 40);
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, 40, 40);
noStroke();
fill (150,50,100);;
ellipse (400, 150, 40, 40);
noStroke();
fill (150,50,100);;
ellipse (500, 150, 40, 40);
noStroke();
fill (500,0,0,50);;
ellipse (600, 150, 40, 40);
noStroke();
fill(255);
rectMode(CENTER);
float sz = frameCount % 700;
ellipse(width/2, height/2, 5 + sz, 5 + sz);
}