xxxxxxxxxx
32
var x = 0;
var f= 0;
function setup() {
createCanvas(400, 400);
}
function draw() {
background("#EEEEEE");
rectMode(CENTER);
noStroke();
fill("#3C32F7");
x += 0.02;
f += 0.002;
if (f == 1) {
rect(0,0,10,10);
}
translate(width / 2, height / 2);
rotate(x);
scale(f);
rect(0, 0, 100, 100);
}