function setup() {
createCanvas(300,500);
}
let a=0
let b=0
let c=0
function draw() {
//left 1
noStroke();
fill(255,0,0);
rect(0,0,100,500);
push();
translate(100,250);
fill(0,0,0);
a+=0.5;
rotate(a);
rect(0,0,30,30);
pop();
fill(0,255,255);
strokeWeight(3);
stroke(255,255,255);
//left 2
noStroke();
fill(255,128,0);
rect(100,0,100,500);
push();
translate(200,250);
fill(0,0,0);
b+=0.05;
rotate(b);
rect(0,0,30,30);
pop();
strokeWeight(3);
//left 3
noStroke();
fill(255,255,0);
rect(200,0,100,500);
push();
translate(300,250);
fill(0,0,0);
c+=5;
rotate(c);
rect(0,0,30,30);
pop();
fill(255,128,0);
strokeWeight(3);
stroke(255,255,255);
}
console