xxxxxxxxxx
35
function setup() {
createCanvas(windowWidth, windowHeight);
//colorMode(HSB, 360);
angleMode(DEGREES);
radius = 4*height/5;
noStroke();
angle = 0;
}
function draw() {
background(215,215,215);
translate(width/2, height/2);
rotate(angle);
translate(radius/8, 0, radius);
rotate(-1.5*angle);
fill(0,169,207);
ellipse(0, 0, radius);
translate(-2*radius/8, 0);
rotate(-0.5*angle);
fill(219,62,52);
ellipse(0, 0, radius/2);
translate(-radius/8, 0);
rotate(-0.5*angle);
fill(240,108,0);
ellipse(0, 0, radius/4);
translate(-radius/16, 0);
fill(127,4,66);
ellipse(0, 0, radius/8);
angle++;
}