xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
colorMode(HSB, 360,100.0, 100.0,100.0);
}
function draw() {
background(0);
translate(width/2,height/2);
foo(300,10);
noLoop();
}
function foo(len,sat) {
fill(240,sat,100,100);
stroke(240,0,0,100);
ellipse(0, 0, len, len);
for(var i=0;i<5;i++)
{
if(len>2)
{
push();
rotate(i*TWO_PI/5)
translate(1,len* 0.618);
foo(len*0.618 * 0.618,sat *1.5)
pop();
}
}
}