xxxxxxxxxx
var fillcolor = [];
function setup() {
createCanvas(480,480);
//background(200, random(255), 200);
for (i = 0; i<13; i++){
fillcolor[i] = color(random(255), 120, random(255));
}
}
function draw() {
background(255);
noStroke();
fill(fillcolor[0]);
rect(width*7/8,0, width/8, height);
fill(fillcolor[1]);
rect(0,0, width*7/8, height/8);
fill(fillcolor[2]);
rect(0, height/8, width/8, height*7/8);
fill(fillcolor[3]);
rect(width/8, height*7/8, width*6/8, height/8);
fill(fillcolor[4]);
rect(width*6/8,height/8, width/8, height*6/8);
fill(fillcolor[5]);
rect(width/8, height/8, width*5/8, height/8);
fill(fillcolor[6]);
rect(width/8, height/4, width/8, height*5/8);
fill(fillcolor[7]);
rect(width/4, height*6/8, width*4/8, height/8);
fill(fillcolor[8]);
rect(width*5/8, height/4, width/8, height/2);
fill(fillcolor[9]);
rect(width/4, height/4, width*3/8, height/8);
fill(fillcolor[10]);
rect(width/4, height*3/8, width/8, height*3/8);
fill(fillcolor[11]);
rect(width*3/8, height*5/8, width*2/8, height/8);
fill(fillcolor[12]);
rect(width*3/8, height*3/8, width/4, height/4);
}
function mouseClicked() {
setup();
}