0xda48f08e…c4c7sent to0x9f79e46a…7794·#17,522,983·view on Etherscan
th/6,height/2,width/3.1);fill("white")
circle(width/6,height/2,width/60);fill("black")
circle(width/6,height/2,width/70);push();translate(pivotX3,pivotY);rotate(pivotAngle4);fill("white")
rect(radius/6,0,width/6,width/900);rect(radius/6,0,width/600,width/100)
rect(radius/6+width/40,0,width/1000,width/80)
rect(radius/6-width/40,0,width/1000,width/80)
rect(radius/6-width/20,0,width/1000,width/80)
rect(radius/6+width/20,0,width/1000,width/80)
pop();fill("grey")
circle(width/6,height/2,width/100)}
if(subject5>.5){noStroke();fill("tan")
circle(width/2,height/2,width/3);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(width/2,height/2,width/3.1);fill("white")
circle(width/2,height/2,width/60);fill("black")
circle(width/2,height/2,width/70);push();translate(pivotX,pivotY);rotate(pivotAngle5);fill("white")
rect(radius/6,0,width/6,width/900);rect(radius/6,0,width/600,width/100)
rect(radius/6+width/40,0,width/1000,width/80)
rect(radius/6-width/40,0,width/1000,width/80)
rect(radius/6-width/20,0,width/1000,width/80)
rect(radius/6+width/20,0,width/1000,width/80)
pop();fill("grey")
circle(width/2,height/2,width/100)}
if(subject6>.5){noStroke();fill("tan")
circle(5*width/6,height/2,width/3);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(5*width/6,height/2,width/3.1);fill("white")
circle(5*width/6,height/2,width/60);fill("black")
circle(5*width/6,height/2,width/70);push();translate(pivotX4,pivotY);rotate(pivotAngle6);fill("white")
rect(radius/6,0,width/6,width/900);rect(radius/6,0,width/600,width/100)
rect(radius/6+width/40,0,width/1000,width/80)
rect(radius/6-width/40,0,width/1000,width/80)
rect(radius/6-width/20,0,width/1000,width/80)
rect(radius/6+width/20,0,width/1000,width/80)
pop();fill("grey")
circle(5*width/6,height/2,width/100)}
if(subject7>.5){noStroke();fill("tan")
circle(width/6,5*height/6,width/3);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(width/6,5*height/6,width/3.1);fill("white")
circle(width/6,5*height/6,width/60);fill("black")
circle(width/6,5*height/6,width/70);push();translate(pivotX3,pivotY4);rotate(pivotAngle7);fill("white")
rect(radius/6,0,width/6,width/900);rect(radius/6,0,width/600,width/100)
rect(radius/6+width/40,0,width/1000,width/80)
rect(radius/6-width/40,0,width/1000,width/80)
rect(radius/6-width/20,0,width/1000,width/80)
rect(radius/6+width/20,0,width/1000,width/80)
pop();fill("grey")
circle(width/6,5*height/6,width/100)}
if(subject8>.5){noStroke();fill("tan")
circle(width/2,5*height/6,width/3);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(width/2,5*height/6,width/3.1);fill("white")
circle(width/2,5*height/6,width/60);fill("black")
circle(width/2,5*height/6,width/70);push();translate(pivotX,pivotY4);rotate(pivotAngle8);fill("white")
rect(radius/6,0,width/6,width/900);rect(radius/6,0,width/600,width/100)
rect(radius/6+width/40,0,width/1000,width/80)
rect(radius/6-width/40,0,width/1000,width/80)
rect(radius/6-width/20,0,width/1000,width/80)
rect(radius/6+width/20,0,width/1000,width/80)
pop();fill("grey")
circle(width/2,5*height/6,width/100)}
if(subject9>.5){noStroke();fill("tan")
circle(5*width/6,5*height/6,width/3);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(5*width/6,5*height/6,width/3.1);fill("white")
circle(5*width/6,5*height/6,width/60);fill("black")
circle(5*width/6,5*height/6,width/70);push();translate(pivotX4,pivotY4);rotate(pivotAngle9);fill("white")
rect(radius/6,0,width/6,width/900);rect(radius/6,0,width/600,width/100)
rect(radius/6+width/40,0,width/1000,width/80)
rect(radius/6-width/40,0,width/1000,width/80)
rect(radius/6-width/20,0,width/1000,width/80)
rect(radius/6+width/20,0,width/1000,width/80)
pop();fill("grey")
circle(5*width/6,5*height/6,width/100)}}else if(subdivision>.025){push();if(subject2>.5){fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);rect(width/4,height/4,width/2,height/2);noStroke();fill("tan")
circle(width/4,height/4,width/2);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(width/4,height/4,width/2.1);fill("white")
circle(width/4,height/4,width/40);fill("black")
circle(width/4,height/4,width/50);push();translate(pivotX1,pivotY1);rotate(pivotAngle1);fill("white")
rect(radius/4,0,width/4,width/800);rect(radius/4,0,width/500,width/80)
rect(radius/4+width/20,0,width/1000,width/80)
rect(radius/4-width/20,0,width/1000,width/80)
rect(radius/4-width/10,0,width/1000,width/80)
rect(radius/4+width/10,0,width/1000,width/80)
pop();fill("grey")
circle(width/4,height/4,width/80)}
if(subject3>.5){fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);rect(3*width/4,height/4,width/2,height/2);noStroke();fill("tan")
circle(3*width/4,height/4,width/2);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(3*width/4,height/4,width/2.1);fill("white")
circle(3*width/4,height/4,width/40);fill("black")
circle(3*width/4,height/4,width/50);push();translate(pivotX2,pivotY1);rotate(pivotAngle2);fill("white")
rect(radius/4,0,width/4,width/800);rect(radius/4,0,width/500,width/80)
rect(radius/4+width/20,0,width/1000,width/80)
rect(radius/4-width/20,0,width/1000,width/80)
rect(radius/4-width/10,0,width/1000,width/80)
rect(radius/4+width/10,0,width/1000,width/80)
pop();fill("grey")
circle(3*width/4,height/4,width/80)}
if(subject4>.5){fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);rect(3*width/4,3*height/4,width/2,height/2);noStroke();fill("tan")
circle(3*width/4,3*height/4,width/2);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(3*width/4,3*height/4,width/2.1);fill("white")
circle(3*width/4,3*height/4,width/40);fill("black")
circle(3*width/4,3*height/4,width/50);push();translate(pivotX2,pivotY2);rotate(pivotAngle3);fill("white")
rect(radius/4,0,width/4,width/800);rect(radius/4,0,width/500,width/80)
rect(radius/4+width/20,0,width/1000,width/80)
rect(radius/4-width/20,0,width/1000,width/80)
rect(radius/4-width/10,0,width/1000,width/80)
rect(radius/4+width/10,0,width/1000,width/80)
pop();fill("grey")
circle(3*width/4,3*height/4,width/80)}
if(subject5>.5){fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);rect(width/4,3*height/4,width/2,height/2);noStroke();fill("tan")
circle(width/4,3*height/4,width/2);fill(R.random_dec()*50+70,R.random_dec()*80+100,R.random_dec()*30+70);circle(width/4,3*height/4,width/2.1);fill("white")
circle(width/4,3*height/4,width/40);fill("black")
circle(width/4,3*height/4,width/50);push();translate(pivotX1,pivotY2);rotate(pivotAngle4);fill("white")
rect(radius/4,0,width/4,width/800);rect(radius/4,0,width/500,width/80)
rect(radius/4+width/20,0,width/1000,width/80)
rect(radius/4-width/20,0,width/1000,width/80)
rect(radius/4-width/10,0,width/1000,width/80)
rect(radius/4+width/10,0,width/1000,width/80)
pop();fill("grey")
circle(width/4,3*height/4,width/80)}
if(subject3<.5&&subject4<.5&&subject6>.5){push();angleMode(DEGREES)
translate(pivotX*2.5,-pivotY);rotate(90);noStroke();fill("black")
rect(width/2,height/2,width*20,height/12);fill("gold")
rect(width/2,height/2-height/800,width*20,height/1600);rect(width/2,height/2+height/800,width*20,height/1600);fill("white")
rect(width/2,height/2-height/26,width*20,height/1600);rect(width/2,height/2+height/26,width*20,height/1600);if(subject2>.75){pop()}}else if(subject3<.5&&subject2<.5&&subject6>.5){push();angleMode(DEGREES)
translate(0,-height/4);noStroke();fill("black")
rect(width/2,height/2,width*20,height/12);fill("gold")
rect(width/2,height/2-height/800,width*20,height/1600);rect(width/2,height/2+height/800,width*20,height/1600);fill("white")
rect(width/2,height/2-height/26,width*20,height/1600);rect(width/2,height/2+height/26,width*20,height/1600);if(subject2>.75){pop()}}else if(subject4<.5&&subject5<.5&&subject6>.5){push();angleMode(DEGREES)
translate(0,height/4);noStroke();fill("black")
rect(width/2,height/2,width*20,height/12);fill("gold")
rect(width/2,height/2-height/800,width*20,height/1600);rect(width/2,height/2+height/800,width*20,height/1600);fill("white")
rect(width/2,height/2-height/26,width*20,height/1600);rect(width/2,height/2+height/26,width*20,height/1600);if(subject2>.75){pop()}}else if(subject2<.5&&subject5<.5&&subject6>.5){push();angleMode(DEGREES)
translate(pivotX*1.5,-pivotY);rotate(90);noStroke();fill("black")
rect(width/2,height/2,width*20,height/12);fill("gold")
rect(width/2,height/2-height/800,width*20,height/1600);rect(width/2,height/2+height/800,width*20,height/1600);fill("white")
rect(width/2,height/2-height/26,width*20,height/1600);rect(width/2,height/2+height/26,width*20,height/1600);if(subject2>.75){pop()}}
pop()}else{if(subject>.5){fill(greenA+50,greenB+20,greenC+10)
rect(width/2,height/2,width,height);noStroke();fill("tan")
circle(width/2,height/2,width);fill(greenA,greenB,greenC)
circle(width/2,height/2,width/1.05);fill("white")
circle(width/2,height/2,width/20);fill("black")
circle(width/2,height/2,width/25);push();translate(pivotX,pivotY);rotate(pivotAngle);fill("white")
rect(radius/2,0,width/1.9,width/400);rect(radius/2,0,width/500,width/40)
rect(radius/2+width/10,0,width/500,width/40)
rect(radius/2-width/10,0,width/500,width/40)
rect(radius/2-width/5,0,width/500,width/40)
rect(radius/2+width/5,0,width/500,width/40)
pop();fill("grey")
circle(width/2,height/2,width/40)}else if(subject>.15){if(subject2>.75){push();angleMode(DEGREES)
rotate(45);translate(pivotX,-pivotY)}else if(subject2>.5){push();angleMode(DEGREES)
translate(pivotX*2,-pivotY);rotate(90)}else if(subject2>.25){push();angleMode(DEGREES)
translate(-pivotX*2,pivotY*2.585);rotate(-45)}
noStroke();fill("black")
rect(width/2,height/2,width*20,height/6);fill("gold")
rect(width/2,height/2-height/400,width*20,height/800);rect(width/2,height/2+height/400,width*20,height/800);fill("white")
rect(width/2,height/2-height/13,width*20,height/800);rect(width/2,height/2+height/13,width*20,height/800);if(subject2>.75){pop()}else if(subject2>.5){pop()}else if(subject2>.25){pop()}}else if(subject>.08){noStroke();fill("black")
rect(width/2,height/2,width*2,height/2.4);fill("white")
rect(width/2,height/2-height/5,width*2,height/800);rect(width/2,height/2+height/5,width*2,height/800);rect(width/2,height/2-height/10,width*2,height/800);rect(width/2,height/2+height/10,width*2,height/800);fill("black")
rect(width/2,height/2-height/10,width/16,height/9);rect(width/2+width/8,height/2-height/10,width/16,height/9);rect(width/2+width/4,height/2-height/10,width/16,height/9);rect(width/2+3*width/8,height/2-height/10,width/16,height/9);rect(width/2+width/2,height/2-height/10,width/16,height/9);rect(width/2+5*width/2,height/2-height/10,width/16,height/9);rect(width/2-width/8,height/2-height/10,width/16,height/9);rect(width/2-width/4,height/2-height/10,width/16,height/9);rect(width/2-3*width/8,height/2-height/10,width/16,height/9);rect(width/2-width/2,height/2-height/10,width/16,height/9);rect(width/2-5*width/2,height/2-height/10,width/16,height/9);rect(width/2,height/2+height/10,width/16,height/8);rect(width/2+width/8,height/2+height/10,width/16,height/8);rect(width/2+width/4,height/2+height/10,width/16,height/8);rect(width/2+3*width/8,height/2+height/10,width/16,height/8);rect(width/2+width/2,height/2+height/10,width/16,height/8);rect(width/2+5*width/2,height/2+height/10,width/16,height/8);rect(width/2-width/8,height/2+height/10,width/16,height/8);rect(width/2-width/4,height/2+height/10,width/16,height/8);rect(width/2-3*width/8,height/2+height/10,width/16,height/8);rect(width/2-width/2,height/2+height/10,width/16,height/8);rect(width/2-5*width/2,height/2+height/10,width/16,height/8);fill("gold")
rect(width/2,height/2-height/400,width*2,height/800);rect(width/2,height/2+height/400,width*2,height/800)}else{stroke(0);strokeWeight(width/200);line(width/2-width/20,height/2,width/3,1.5*height/5);line(width/2+width/20.75,height/2,width/2.32,1.5*height/5);strokeWeight(width/80);line(width/1.99,height/1.98,width/2.62,1.5*height/5);fill(0);strokeWeight(width/400);line(width/2.35,height/2.2,width/2.01,height/2.42);line(width/2.55,height/2.5,width/2.16,height/2.765);line(width/2.55,height/2.5,width/2.01,height/2.42)
line(width/2.35,height/2.2,width/2.16,height/2.765);noStroke();quad(width/3.04,1.48*height/5,width/2.44,1.275*height/5,width/2.2,1.7*height/5,width/2.62,1.9*height/5);noStroke();if(subject9>.5){fill("rgb(40,40,200)")}else{fill("rgb(200,40,40)")}
circle(width/2,height/2,width/10);if(subject9>.5){fill("rgb(60,60,190)")}else{fill("rgb(190,60,60)")}
circle(width/2,height/2,width/11);if(subject9>.5){fill("rgb(80,80,180)")}else{fill("rgb(180,80,80)")}
circle(width/2,height/2,width/12);if(subject9>.5){fill("rgb(110,110,170)")}else{fill("rgb(170,110,110)")}
circle(width/2,height/2,width/13)}}
push();if(subdivision>.9){scale(.5);if(subject<.3){translate(-width/3,-height/3.5)}else if(subject2<.4){translate(-width/12,-height/3.25)}else if(subject34<.5){translate(width/1.5,height*1.35)}else{translate(width*8,height*8)}}else if(subdivision>.65){scale(.65);if(subject9<.3){translate(width/1.8,0)}else if(subject11<.4){translate(-width/3,height/3.25)}else if(subject21<.5){translate(-width/3,height/1.05)}else{translate(width*8,height*8)}}else if(subdivision>.45){scale(.75);if(subject8<.3){translate(width/1.5,height/12)}else if(subject11<.4){translate(width/3,height/3)}else if(subject13<.5){translate(-width/3,height/1.35)}else{translate(width*8,height*8)}}else if(subdivision>.25){scale(.85);if(subject2<.3){translate(width/12,-height/3.5)}else if(subject<.4){translate(-width/3,-height/3.5)}else if(subject9<.5){translate(width/2,height/2)}else{translate(width*8,height*8)}}else if(subdivision>.025){scale(.95);if(subject2<.3){translate(-width/2.75,-height/3)}else if(subject3<.4){translate(width/2.4,-height/3)}else if(subject4<.5){translate(width/2.35,height/2)}else if(subject5<.5){translate(-width/2.75,height/2.5)}else{translate(width*8,height*8)}}else{if(subject<.3){translate(width/3,height/6)}else{translate(width*8,height*8)}}
houseX=R.random_int(5,25);houseY=random_int(20,36);fill("rgb(189,100,100)");rect(width/2+width/32,height/2-height/16,width/R.random_int(50,100),height/6);fill("black");rect(width/2+width/64,height/2-height/16,width/8-width/32,height/8);rect(width/2,height/2-width/32,width/8,height/12);triangle(width/2-width/16,height/2-height/14,width/2,height/2-height/16,width/2-width/32,height/2-height/8);rect(width/2+width/32,height/2-height/16,width/houseX,height/8);fill(R.random_choice(['white','rgb(251,241,241)','white','rgb(244,244,244)','rgb(242,244,231)','white']));rect(width/2,height/2,width/8,height/16);triangle(width/2-width/16,height/2-height/33,width/2,height/2-height/33,width/2-width/32,height/2-height/12);rect(width/2+width/32,height/2,width/houseX,height/16);fill("rgb(46,46,46)");rect(width/2-width/32,height/2+height/96,width/50,height/24);fill(R.random_choice(['#CE5272','#FF0000','#AB9B8E','#A37B82','#C29B9B','#FF7D96','#928BBA','#CF9B6D','#96B697','#71857F','#B97E75','#94598D','#61A7A4','#DFDDDC','#96B697','#E9C60D','#C4D3D3']));rect(width/2-width/32,height/2+height/92,width/60,height/28);fill("rgb(86,85,92)");rect(width/2+width/32,height/2,width/64,height/houseY);fill("white");rect(width/2+width/32,height/2,width/64,height/400);rect(width/2+width/32,height/2,width/400,height/houseY);fill("gold")
circle(width/2-width/38,height/2+height/90,width/300);if(R.random_int(1,10)>3){fill("rgb(150,138,138)");circle(width/2-width/32,height/2-height/32,width/R.random_int(50,96))}
pop();push();if(plane>.48){rotate(R.random_dec()-R.random_dec()*3.5);translate(0,height/3-R.random_dec()*height/3);scale(R.random_dec()*3);fill("rgba(12,12,12,0.83)");quad(width/2-width/48,height/2-height/24,width/2-width/6,height/2+height/24,width/2-width/6,height/2,width/2-width/48,height/2-height/8);quad(width/2+width/48,height/2-height/24,width/2+width/6,height/2+height/24,width/2+width/6,height/2,width/2+width/48,height/2-height/8);ellipse(width/2,height/2-height/24,width/20,height/2.5);quad(width/2-width/30,height/2+height/6.5,width/2,height/2+height/8,width/2,height/2+height/6,width/2-width/30,height/2+height/5.5);quad(width/2+width/30,height/2+height/6.5,width/2,height/2+height/8,width/2,height/2+height/6,width/2+width/30,height/2+height/5.5)}
pop();
addTexture(18);
noLoop();
}
function keyPressed(){if(keyCode===DOWN_ARROW){saveCanvas("Theoretical Township","png")}
noLoop()}