/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.QFhtEPtIAza/rev.400
*
* authors:
* Rosmaria Coutinho
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//utilizei uma composição dinâmica dada pelo professor, e alterei alguns //parâmetros
void setup() {
// tamanho da tela
size(500, 500);
// cor de fundo
background(255);
// numero de frames por segundo
frameRate(30);
}
void draw() {
background(255);
noStroke();
fill(255, 0, 0,50);
rectMode(CENTER);
float sz = frameCount % 900;
rect(width/2, height/2, 240 + sz, 240 + sz);
background(255);
noStroke();
fill(255, 0, 0,50);
rectMode(CENTER);
float sz = frameCount % 800;
rect(width/2, height/2, 120 + sz, 120 + sz);
noStroke();
fill(204, 34, 0,50);
rectMode(CENTER);
float sz = frameCount % 700;
rect(width/2, height/2, 60 + sz, 60 + sz);
noStroke();
fill(204, 9, 0,50);
rectMode(CENTER);
float sz = frameCount % 600;
rect(width/2, height/2, 30 + sz, 30 + sz);
noStroke();
fill(204, 102, 0,50);
rectMode(CENTER);
float sz = frameCount % 500;
rect(width/2, height/2, 1 + sz, 1 + sz);
noStroke();
fill(255, 0, 0,50);
rectMode(CENTER);
float sz = frameCount % -900;
rect(width/2, height/2, 100 + sz, 100 + sz);
}