/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.qeAVyQb920V/rev.256
*
* authors:
* vinicius philot
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// Pressing Control-R will render this sketch.
int i = 0;
void setup() { // this is run once.
// set the background color
background(255);
// canvas size (Variable aren't evaluated. Integers only, please.)
size(500, 500);
// smooth edges
smooth();
// limit the number of frames per second
frameRate(15);
// set the width of the line.
strokeWeight(3);
}
void draw() { // this is run repeatedly.
colorMode(RGB);
noStroke();
translate(width/2, height/2);
rotate (30+(i/10));
rect(0+i,0,55,55);
fill(20+i,0,0,20);
i++;
}