void setup() {
size(400, 400);
noStroke();
smooth();
noLoop();
float r = random(255);
}
void draw(){
b(20, 70);
b(153, 70);
b(285, 70);
b(20, 190);
b(155, 190);
b(283, 190);
b(20, 320);
b(153, 320);
b(285, 320);
}
void b(int x, int y) {
float r = random(255);
float r2 = random(40, 60);
float r3 = random(35);
float r4 = random(-5, 5);
float r5 = random(-2,2);
fill(255);
rect(x, y, 110, -r2); // main
fill(150);
rect(x, y, r3+10, -(60+r3)); //smoke stack
fill(r, 80, 163);
rect(x+(80+r4), y, 20, -20);//doors
rect(x+(35+r4), y, 20, -20);
fill(0+r); //windows
rect(x+(40+r4), ((y-40)), 10, 10);
rect(x+(65+r4), ((y-40)), 10, 10);
rect(x+(85+r4), ((y-40)), 10, 10);
}
Alex - I
on Wednesday, Oct 22, 2008 – 8:25 am