/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.lp1RPTgWkpS/rev.434
*
* authors:
* Diana Bernardo
* 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, "AnaLeitão_02_Caracol Rendado", created by Ana
// http://dflab.sketchpad.cc/sp/pad/view/ro.9NCSEGeCWVSWkq/rev.131
// as instruções que estiverem dentro desta função setup()
// correm uma vez quando o programa arranca
void setup() {
// tamanho da tela
size(600, 600);
// cor de fundo
background(212, 246, 250);
frameRate(20);
}
// as instruções que estiverem dentro desta função draw
// são executadas a cada novo frame
void draw() {
noFill ();
stroke (252, 148, 20,20 )
rectMode(CENTER);
sz = (frameCount % 1000) / 100.0;
translate (width-(width/5), height-(height/5));
rotate (TWO_PI * sz);
rect (200, 200, 100 * sz, 100 * sz);
noFill();
stroke (62, 234, 172,40 )
rectMode(CENTER);
sz = (frameCount % 1000) / 100.0;
translate (width/5, height/5);
rotate (TWO_PI * sz);
strokeWeight(3);
rect (200, 200, 100 * sz, 100 * sz);
}