xxxxxxxxxx
25
function setup() {
createCanvas(400, 400);
colorMode(HSB);
rectMode(CENTER);
angleMode(DEGREES);
noStroke();
}
function draw() {
background(255);
translate(width/2, height/2);
push();
rotate(frameCount);
fill(0, 90, 80);
square(-width/3, 0, width/5);
fill(72, 90, 80);
square(0, -height/3, width/5);
fill(144, 90, 80);
square(width/3, 0, width/5);
fill(216, 90, 80);
square(0, height/3, width/5);
pop();
fill(288, 90, 80);
square(0, 0, width/5);
}