xxxxxxxxxx
129
function setup() {
createCanvas(400, 400);
//top row
//Square 1 orange
strokeWeight(0);
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(0,10,400,11);
//Square 2 light green
randomColor = color(random(225),random(255),random(255));
fill (randomColor);
rect(0,20,11,91);
//square 3 yellow
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(10,20,107,91);
//square 4 white
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(116,20,97,91);
//square 5 oranhe
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(210,20,97,91);
//square 6 red
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(295,20,13,91);
//square 8 gree
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(320,20,97,91);
//square 7 blu
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(305,20,67,85);
//square 9 small white
randomColor = color(random(255),random(255),random(255));
fill (randomColor);
rect(300,105,75,5);
//second row everybody!
//square 10 Large orange line
for(let i=0; i<20; i++){
let x = i*(width/20);
let y = 0;
let w = width/20;
let h = 20;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
//square 11 pretty blue
//4 means amount of squares.
for(let i=0; i<4; i++){
let x = i*(width/4);
let y = 127;
let w = width/4;
let h = 124;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
for(let i=0; i<30; i++){
let x = i*(width/30);
let y = 110;
let w = width/30;
let h = 18;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
for(let i=0; i<5; i++){
let x = i*(width/5);
let y = 270;
let w = width/5;
let h = 224;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
for(let i=0; i<40; i++){
let x = i*(width/40);
let y = 251;
let w = width/40;
let h = 19;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
for(let i=0; i<60; i++){
let x = i*(width/60);
let y = 351;
let w = width/60;
let h = 19;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
for(let i=0; i<8; i++){
let x = i*(width/8);
let y = 370;
let w = width/8;
let h = 324;
fill(random(0,255),random(0,255),random(0,255));
rect(x,y,w,h);
}
}