/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.jUI0t1jTANo/rev.1120
*
* authors:
* adriana barros
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.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(400);
}
// as instruções que estiverem dentro desta função draw
// são executadas a cada novo frame
void draw() {
background(900);
noStroke()
fill(300, 0, 0,50);
rectMode(CENTER);
float sz = frameCount % 800;
rect(width/2, height/2, 240 + sz, 240 + sz);
noStroke();
fill (500, 0, 0,50);;
ellipse (0, 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(222, 102, 0,90);
rectMode(CENTER);
float sz = frameCount % 500;
rect(width/2, height/2, 1 + sz, 1 + sz);
}