Tuesday, December 11, 2007

Final | The final code for processing

import processing.serial.*;
int inByte;

Serial port1;

PFont font;

String[] quotes = {
"We are conscious \n of one sensory modality \n at a time - one kind of sense: \n hearing, \n seeing, \n feeling \n or tasting.",
"To be aware of an experience \n \n means that it has passed",
"The eye sends at least 10 million bits \n to the brain every second. \n \n The skin sends a million bits a second, \n \n the ear one hundred thousand, \n \nour smell sensors a further \n one hundred thousand bits a second, \n \n our taste buds perhaps \n a thousand bits a second.",
"Every single second, millions of \n bits of information flood in \n through our senses. \n But our consciousness \n processes only perhaps \n forty bits a second - at most."
};

PImage a1;
PImage b1;
PImage c1;
PImage d1;
PImage a2;
PImage b2;
PImage c2;
PImage d2;
PImage a3;
PImage b3;
PImage c3;
PImage d3;
PImage a4;
PImage b4;
PImage c4;
PImage d4;
PImage a5;
PImage b5;
PImage c5;
PImage d5;
PImage a6;
PImage b6;
PImage c6;
PImage d6;
PImage a7;
PImage b7;
PImage c7;
PImage d7;
PImage a8;
PImage b8;
PImage c8;
PImage d8;
PImage a9;
PImage b9;
PImage c9;
PImage d9;
PImage a10;
PImage b10;
PImage c10;
PImage d10;
PImage a11;
PImage b11;
PImage c11;
PImage d11;
PImage a12;
PImage b12;
PImage c12;
PImage d12;
PImage a13;
PImage b13;
PImage c13;
PImage d13;
PImage a14;
PImage b14;
PImage c14;
PImage d14;
PImage a15;
PImage b15;
PImage c15;
PImage d15;
PImage a16;
PImage b16;
PImage c16;
PImage d16;

boolean A1on=false;
boolean B1on=false;
boolean C1on=false;
boolean D1on=false;
boolean A2on=false;
boolean B2on=false;
boolean C2on=false;
boolean D2on=false;
boolean A3on=false;
boolean B3on=false;
boolean C3on=false;
boolean D3on=false;
boolean A4on=false;
boolean B4on=false;
boolean C4on=false;
boolean D4on=false;
boolean A5on=false;
boolean B5on=false;
boolean C5on=false;
boolean D5on=false;
boolean A6on=false;
boolean B6on=false;
boolean C6on=false;
boolean D6on=false;
boolean A7on=false;
boolean B7on=false;
boolean C7on=false;
boolean D7on=false;
boolean A8on=false;
boolean B8on=false;
boolean C8on=false;
boolean D8on=false;
boolean A9on=false;
boolean B9on=false;
boolean C9on=false;
boolean D9on=false;
boolean A10on=false;
boolean B10on=false;
boolean C10on=false;
boolean D10on=false;
boolean A11on=false;
boolean B11on=false;
boolean C11on=false;
boolean D11on=false;
boolean A12on=false;
boolean B12on=false;
boolean C12on=false;
boolean D12on=false;
boolean A13on=false;
boolean B13on=false;
boolean C13on=false;
boolean D13on=false;
boolean A14on=false;
boolean B14on=false;
boolean C14on=false;
boolean D14on=false;
boolean A15on=false;
boolean B15on=false;
boolean C15on=false;
boolean D15on=false;
boolean A16on=false;
boolean B16on=false;
boolean C16on=false;
boolean D16on=false;

int gameState;

void setup() {
size(800, 800); // Stage size
background(0);
gameState=0;

a1 = loadImage("a1.jpg");
b1 = loadImage("b1.jpg");
c1 = loadImage("c1.jpg");
d1 = loadImage("d1.jpg");
a2 = loadImage("a2.jpg");
b2 = loadImage("b2.jpg");
c2 = loadImage("c2.jpg");
d2 = loadImage("d2.jpg");
a3 = loadImage("a3.jpg");
b3 = loadImage("b3.jpg");
c3 = loadImage("c3.jpg");
d3 = loadImage("d3.jpg");
a4 = loadImage("a4.jpg");
b4 = loadImage("b4.jpg");
c4 = loadImage("c4.jpg");
d4 = loadImage("d4.jpg");
a5 = loadImage("a5.jpg");
b5 = loadImage("b5.jpg");
c5 = loadImage("c5.jpg");
d5 = loadImage("d5.jpg");
a6 = loadImage("a6.jpg");
b6 = loadImage("b6.jpg");
c6 = loadImage("c6.jpg");
d6 = loadImage("d6.jpg");
a7 = loadImage("a7.jpg");
b7 = loadImage("b7.jpg");
c7 = loadImage("c7.jpg");
d7 = loadImage("d7.jpg");
a8 = loadImage("a8.jpg");
b8 = loadImage("b8.jpg");
c8 = loadImage("c8.jpg");
d8 = loadImage("d8.jpg");
a9 = loadImage("a9.jpg");
b9 = loadImage("b9.jpg");
c9 = loadImage("c9.jpg");
d9 = loadImage("d9.jpg");
a10 = loadImage("a10.jpg");
b10 = loadImage("b10.jpg");
c10 = loadImage("c10.jpg");
d10 = loadImage("d10.jpg");
a11 = loadImage("a11.jpg");
b11 = loadImage("b11.jpg");
c11 = loadImage("c11.jpg");
d11 = loadImage("d11.jpg");
a12 = loadImage("a12.jpg");
b12 = loadImage("b12.jpg");
c12 = loadImage("c12.jpg");
d12 = loadImage("d12.jpg");
a13 = loadImage("a13.jpg");
b13 = loadImage("b13.jpg");
c13 = loadImage("c13.jpg");
d13 = loadImage("d13.jpg");
a14 = loadImage("a14.jpg");
b14 = loadImage("b14.jpg");
c14 = loadImage("c14.jpg");
d14 = loadImage("d14.jpg");
a15 = loadImage("a15.jpg");
b15 = loadImage("b15.jpg");
c15 = loadImage("c15.jpg");
d15 = loadImage("d15.jpg");
a16 = loadImage("a16.jpg");
b16 = loadImage("b16.jpg");
c16 = loadImage("c16.jpg");
d16 = loadImage("d16.jpg");

port1 = new Serial(this, Serial.list()[0], 9600);

port1.write(65);

}

void draw() {

if( 0
inByte = port1.read();
}

if(gameState==1) {
playGame();
}

else if(gameState==2){
completeGame();
}

else if (gameState==0) {
startGame();
}

}

void startGame() {
background(0);
font = loadFont ("ArialRoundedMTBold-40.vlw");
textFont(font);
String s = "to play, place a cube on the tray";
textAlign(CENTER,CENTER);
text(s, 400, 400);
fill(255);

if ((64
gameState=1;
background(0);
}
}

void playGame() {

//1
if(inByte== 128){
println("a1 on");
image(a1, 0, 0);
A1on=true;
B1on=false;
C1on=false;
D1on=false;

}
else if(inByte==64){
noStroke();
fill(0);
rect(0,0,200,200);
println("a1 off");
A1on=false;

}



else if(inByte==124){
println("b1 on");
image(b1, 0, 0);
A1on=false;
B1on=true;
C1on=false;
D1on=false;

}
else if(inByte==60){
noStroke();
fill(0);
rect(0,0,200,200);
println("b1 off");
B1on=false;

}




else if(inByte==115){
println("c1 on");
image(c1, 0, 0);
A1on=false;
B1on=false;
C1on=true;
D1on=false;

}
else if(inByte==51){
noStroke();
fill(0);
rect(0,0,200,200);
println("c1 off");
C1on=false;

}


else if(inByte==120){
println("d1 on");
image(d1, 0, 0);
A1on=false;
B1on=false;
C1on=false;
D1on=true;

}
else if(inByte==56){
noStroke();
fill(0);
rect(0,0,200,200);
println("d1 off");
D1on=false;

}




//2
if(inByte==100){
println("a2 on");
image(a2, 200, 0);
A2on=true;
B2on=false;
C2on=false;
D2on=false;

}
else if(inByte==36){
noStroke();
fill(0);
rect(200,0,200,200);
println("a2 off");
A2on=false;

}


else if(inByte==103){
println("b2 on");
image(b2, 200, 0);
A2on=false;
B2on=true;
C2on=false;
D2on=false;

}
else if(inByte==39){
noStroke();
fill(0);
rect(200,0,200,200);
println("b2 off");
B2on=false;

}

else if(inByte==112){
println("c2 on");
image(c2, 200, 0);
A2on=false;
B2on=false;
C2on=true;
D2on=false;


}
else if(inByte==48){
noStroke();
fill(0);
rect(200,0,200,200);
println("c2 off");
C2on=false;

}

else if(inByte==99){
println("d2 on");
image(d2, 200, 0);
A2on=false;
B2on=false;
C2on=false;
D2on=true;

}
else if(inByte==35){
noStroke();
fill(0);
rect(200,0,200,200);
println("d2 off");
D2on=false;

}


//3
if(inByte==95){
println("a3 on");
image(a3, 400, 0);
A3on=true;
B3on=false;
C3on=false;
D3on=false;

}
else if(inByte==31){
noStroke();
fill(0);
rect(400,0,200,200);
println("a3 off");
A3on=false;

}

else if(inByte==96){
println("b3 on");
image(b3, 400, 0);
A3on=false;
B3on=true;
C3on=false;
D3on=false;

}
else if(inByte==32){
noStroke();
fill(0);
rect(400,0,200,200);
println("b3 off");
B3on=false;

}

else if(inByte==92){
println("c3 on");
image(c3, 400, 0);
A3on=false;
B3on=false;
C3on=true;
D3on=false;

}
else if(inByte==28){
noStroke();
fill(0);
rect(400,0,200,200);
println("c3 off");
C3on=false;

}

else if(inByte==91){
println("d3 on");
image(d3, 400, 0);
A3on=false;
B3on=false;
C3on=false;
D3on=true;

}
else if(inByte==27){
noStroke();
fill(0);
rect(400,0,200,200);
println("d3 off");
D3on=false;

}

//4
if(inByte==68){
println("a4 on");
image(a4, 600, 0);
A4on=true;
B4on=false;
C4on=false;
D4on=false;

}
else if(inByte==4){
noStroke();
fill(0);
rect(600,0,200,200);
println("a4 off");
A4on=false;

}



else if(inByte==71){
println("b4 on");
image(b4, 600, 0);
A4on=false;
B4on=true;
C4on=false;
D4on=false;

}
else if(inByte==7){
noStroke();
fill(0);
rect(600,0,200,200);
println("b4 off");
B4on=false;

}


else if(inByte==67){
println("c4 on");
image(c4, 600, 0);
A4on=false;
B4on=false;
C4on=true;
D4on=false;

}
else if(inByte==3){
noStroke();
fill(0);
rect(600,0,200,200);
println("c4 off");
C4on=false;

}

else if(inByte==72){
println("d4 on");
image(d4, 600, 0);
A4on=false;
B4on=false;
C4on=false;
D4on=true;

}
else if(inByte==8){
noStroke();
fill(0);
rect(600,0,200,200);
println("d4 off");
D4on=false;

}



//5
if(inByte==116){
println("a5 on");
image(a5, 0, 200);
A5on=true;
B5on=false;
C5on=false;
D5on=false;


}
else if(inByte==52){
noStroke();
fill(0);
rect(0,200,200,200);
println("a5 off");
A5on=false;

}



else if(inByte==119){
println("b5 on");
image(b5, 0, 200);
A5on=false;
B5on=true;
C5on=false;
D5on=false;

}
else if(inByte==55){
noStroke();
fill(0);
rect(0,200,200,200);
println("b5 off");
B5on=false;

}


else if(inByte==123){
println("c5 on");
image(c5, 0, 200);
A5on=false;
B5on=false;
C5on=true;
D5on=false;

}
else if(inByte==59){
noStroke();
fill(0);
rect(0,200,200,200);
println("c5 off");
C5on=false;

}


else if(inByte==127){
println("d5 on");
image(d5, 0, 200);
A5on=false;
B5on=false;
C5on=false;
D5on=true;


}
else if(inByte==63){
noStroke();
fill(0);
rect(0,200,200,200);
println("d5 off");
D5on=false;

}



//6
if(inByte==111){
println("a6 on");
image(a6, 200, 200);
A6on=true;
B6on=false;
C6on=false;
D6on=false;

}
else if(inByte==47){
noStroke();
fill(0);
rect(200,200,200,200);
println("a6 off");
A6on=false;

}
else if(inByte==108){
println("b6 on");
image(b6, 200, 200);
A6on=false;
B6on=true;
C6on=false;
D6on=false;

}
else if(inByte==44){
noStroke();
fill(0);
rect(200,200,200,200);
println("b6 off");
B6on=false;

}

else if(inByte==104){
println("c6 on");
image(c6, 200, 200);
A6on=false;
B6on=false;
C6on=true;
D6on=false;

}
else if(inByte==40){
noStroke();
fill(0);
rect(200,200,200,200);
println("c6 off");
C6on=false;

}


else if(inByte==107){
println("d6 on");
image(d6, 200, 200);
A6on=false;
B6on=false;
C6on=false;
D6on=true;

}
else if(inByte==43){
noStroke();
fill(0);
rect(200,200,200,200);
println("d6 off");
D6on=false;

}

//7
if(inByte==88){
println("a7 on");
image(a7, 400, 200);
A7on=true;
B7on=false;
C7on=false;
D7on=false;

}
else if(inByte==24){
noStroke();
fill(0);
rect(400,200,200,200);
println("a7 off");
A7on=false;

}


else if(inByte==83){
println("b7 on");
image(b7, 400, 200);
A7on=false;
B7on=true;
C7on=false;
D7on=false;

}
else if(inByte==19){
noStroke();
fill(0);
rect(400,200,200,200);
println("b7 off");
B7on=false;

}


else if(inByte==84){
println("c7 on");
image(c7, 400, 200);
A7on=false;
B7on=false;
C7on=true;
D7on=false;

}
else if(inByte==20){
noStroke();
fill(0);
rect(400,200,200,200);
println("c7 off");
C7on=false;

}

else if(inByte==87){
println("d7 on");
image(d7, 400, 200);
A7on=false;
B7on=false;
C7on=false;
D7on=true;

}
else if(inByte==23){
noStroke();
fill(0);
rect(400,200,200,200);
println("d7 off");
D7on=false;

}

//8

if(inByte==79){
println("a8 on");
image(a8, 600, 200);
A8on=true;
B8on=false;
C8on=false;
D8on=false;

}
else if(inByte==15){
noStroke();
fill(0);
rect(600,200,200,200);
println("a8 off");
A8on=false;

}

else if(inByte==80){
println("b8 on");
image(b8, 600, 200);
A8on=false;
B8on=true;
C8on=false;
D8on=false;

}
else if(inByte==16){
noStroke();
fill(0);
rect(600,200,200,200);
println("b8 off");
B8on=false;

}


else if(inByte==75){
println("c8 on");
image(c8, 600, 200);
A8on=false;
B8on=false;
C8on=true;
D8on=false;

}
else if(inByte==11){
noStroke();
fill(0);
rect(600,200,200,200);
println("c8 off");
C8on=false;

}

else if(inByte==76){
println("d8 on");
image(d8, 600, 200);
A8on=false;
B8on=false;
C8on=false;
D8on=true;

}
else if(inByte==12){
noStroke();
fill(0);
rect(600,200,200,200);
println("d8 off");
D8on=false;

}


//9
if(inByte==125){
println("a9 on");
image(a9, 0, 400);
A9on=true;
B9on=false;
C9on=false;
D9on=false;

}
else if(inByte==61){
noStroke();
fill(0);
rect(0,400,200,200);
println("a9 off");
A9on=false;

}


else if(inByte==126){
println("b9 on");
image(b9, 0, 400);
A9on=false;
B9on=true;
C9on=false;
D9on=false;

}
else if(inByte==62){
noStroke();
fill(0);
rect(0,400,200,200);
println("b9 off");
B9on=false;

}


else if(inByte==114){
println("c9 on");
image(c9, 0, 400);
A9on=false;
B9on=false;
C9on=true;
D9on=false;

}
else if(inByte==50){
noStroke();
fill(0);
rect(0,400,200,200);
println("c9 off");
C9on=false;
}

else if(inByte==122){
println("d9 on");
image(d9, 0, 400);
A9on=false;
B9on=false;
C9on=false;
D9on=true;

}
else if(inByte==58){
noStroke();
fill(0);
rect(0,400,200,200);
println("d9 off");
D9on=false;

}

//10

if(inByte==110){
println("a10 on");
image(a10, 200, 400);
A10on=true;
B10on=false;
C10on=false;
D10on=false;

}
else if(inByte==46){
noStroke();
fill(0);
rect(200,400,200,200);
println("a10 off");
A10on=false;

}

else if(inByte==98){
println("b10 on");
image(b10, 200, 400);
A10on=false;
B10on=true;
C10on=false;
D10on=false;

}
else if(inByte==34){
noStroke();
fill(0);
rect(200,400,200,200);
println("b10 off");
B10on=false;

}


else if(inByte==106){
println("c10 on");
image(c10, 200, 400);
A10on=false;
B10on=false;
C10on=true;
D10on=false;

}
else if(inByte==42){
noStroke();
fill(0);
rect(200,400,200,200);
println("c10 off");
C10on=false;

}

else if(inByte==109){
println("d10 on");
image(d10, 200, 400);
A10on=false;
B10on=false;
C10on=false;
D10on=true;

}
else if(inByte==45){
noStroke();
fill(0);
rect(200,400,200,200);
println("d10 off");
D10on=false;

}

//11

if(inByte==93){
println("a11 on");
image(a11, 400, 400);
A11on=true;
B11on=false;
C11on=false;
D11on=false;

}
else if(inByte==29){
noStroke();
fill(0);
rect(400,400,200,200);
println("a11 off");
A11on=false;

}

else if(inByte==89){
println("b11 on");
image(b11, 400, 400);
A11on=false;
B11on=true;
C11on=false;
D11on=false;

}
else if(inByte==25){
noStroke();
fill(0);
rect(400,400,200,200);
println("b11 off");
B11on=false;

}

else if(inByte==94){
println("c11 on");
image(c11, 400, 400);
A11on=false;
B11on=false;
C11on=true;
D11on=false;

}
else if(inByte==30){
noStroke();
fill(0);
rect(400,400,200,200);
println("c11 off");
C11on=false;

}


else if(inByte==90){
println("d11 on");
image(d11, 400, 400);
A11on=false;
B11on=false;
C11on=false;
D11on=true;

}
else if(inByte==26){
noStroke();
fill(0);
rect(400,400,200,200);
println("d11 off");
D11on=false;

}

//12

if(inByte==70){
println("a12 on");
image(a12, 600, 400);
A12on=true;
B12on=false;
C12on=false;
D12on=false;

}
else if(inByte==6){
noStroke();
fill(0);
rect(600,400,200,200);
println("a12 off");
A12on=false;

}

else if(inByte==65){
println("b12 on");
image(b12, 600, 400);
A12on=false;
B12on=true;
C12on=false;
D12on=false;

}
else if(inByte==1){
noStroke();
fill(0);
rect(600,400,200,200);
println("b12 off");
B12on=false;

}


else if(inByte==69){
println("c12 on");
image(c12, 600, 400);
A12on=false;
B12on=false;
C12on=true;
D12on=false;

}
else if(inByte==5){
noStroke();
fill(0);
rect(600,400,200,200);
println("c12 off");
C12on=false;

}


else if(inByte==73){
println("d12 on");
image(d12, 600, 400);
A12on=false;
B12on=false;
C12on=false;
D12on=true;

}
else if(inByte==9){
noStroke();
fill(0);
rect(600,400,200,200);
println("d12 off");
D12on=false;

}

//13
if(inByte==118){
println("a13 on");
image(a13, 0, 600);
A13on=true;
B13on=false;
C13on=false;
D13on=false;

}
else if(inByte==54){
noStroke();
fill(0);
rect(0,600,200,200);
println("a13 off");
A13on=false;

}

else if(inByte==117){
println("b13 on");
image(b13, 0, 600);
A13on=false;
B13on=true;
C13on=false;
D13on=false;

}
else if(inByte==53){
noStroke();
fill(0);
rect(0,600,200,200);
println("b13 off");
B13on=false;

}

else if(inByte==121){
println("c13 on");
image(c13, 0, 600);
A13on=false;
B13on=false;
C13on=true;
D13on=false;

}
else if(inByte==57){
noStroke();
fill(0);
rect(0,600,200,200);
println("c13 off");
C13on=false;

}

else if(inByte==113){
println("d13 on");
image(d13, 0, 600);
A13on=false;
B13on=false;
C13on=false;
D13on=true;

}
else if(inByte==49){
noStroke();
fill(0);
rect(0,600,200,200);
println("d13 off");
D13on=false;

}

//14

if(inByte==105){
println("a14 on");
image(a14, 200, 600);
A14on=true;
B14on=false;
C14on=false;
D14on=false;

}
else if(inByte==41){
noStroke();
fill(0);
rect(200,600,200,200);
println("a14 off");
A14on=false;

}

else if(inByte==102){
println("b14 on");
image(b14, 200, 600);
A14on=false;
B14on=true;
C14on=false;
D14on=false;

}
else if(inByte==38){
noStroke();
fill(0);
rect(200,600,200,200);
println("b14 off");
B14on=false;

}

else if(inByte==101){
println("c14 on");
image(c14, 200, 600);
A14on=false;
B14on=false;
C14on=true;
D14on=false;

}
else if(inByte==37){
noStroke();
fill(0);
rect(200,600,200,200);
println("c14 off");
C14on=false;

}

else if(inByte==97){
println("d14 on");
image(d14, 200, 600);
A14on=false;
B14on=false;
C14on=false;
D14on=true;

}
else if(inByte==33){
noStroke();
fill(0);
rect(200,600,200,200);
println("d14 off");
D14on=false;

}

//15

if(inByte==82){
println("a15 on");
image(a15, 400, 600);
A15on=true;
B15on=false;
C15on=false;
D15on=false;

}
else if(inByte==18){
noStroke();
fill(0);
rect(400,600,200,200);
println("a15 off");
A15on=false;

}

else if(inByte==85){
println("b15 on");
image(b15, 400, 600);
A15on=false;
B15on=true;
C15on=false;
D15on=false;

}
else if(inByte==21){
noStroke();
fill(0);
rect(400,600,200,200);
println("b15 off");
B15on=false;

}

else if(inByte==81){
println("c15 on");
image(c15, 400, 600);
A15on=false;
B15on=false;
C15on=true;
D15on=false;

}
else if(inByte==17){
noStroke();
fill(0);
rect(400,600,200,200);
println("c15 off");
C15on=false;

}

else if(inByte==86){
println("d15 on");
image(d15, 400, 600);
A15on=false;
B15on=false;
C15on=false;
D15on=true;

}
else if(inByte==22){
noStroke();
fill(0);
rect(400,600,200,200);
println("d15 off");
D15on=false;

}

//16

if(inByte==66){
println("a16 on");
image(a16, 600, 600);
A16on=true;
B16on=false;
C16on=false;
D16on=false;

}
else if(inByte==2){
noStroke();
fill(0);
rect(600,600,200,200);
println("a16 off");
A16on=false;

}

else if(inByte==77){
println("b16 on");
image(b16, 600, 600);
A16on=false;
B16on=true;
C16on=false;
D16on=false;

}
else if(inByte==13){
noStroke();
fill(0);
rect(600,600,200,200);
println("b16 off");
B16on=false;

}

else if(inByte==74){
println("c16 on");
image(c16, 600, 600);
A16on=false;
B16on=false;
C16on=true;
D16on=false;

}
else if(inByte==10){
noStroke();
fill(0);
rect(600,600,200,200);
println("c16 off");
C16on=false;

}

else if(inByte==78){
println("d16 on");
image(d16, 600, 600);
A16on=false;
B16on=false;
C16on=false;
D16on=true;

}
else if(inByte==14){
noStroke();
fill(0);
rect(600,600,200,200);
println("d16 off");
D16on=false;

}
}

void completeGame() {

if((A1on==true) && (A2on==true) && (A3on==true) && (A4on==true) && (A5on==true) && (A6on==true) && (A7on==true) && (A8on==true) && (A9on==true) && (A10on==true) && (A11on==true) && (A12on==true) && (A13on==true) && (A14on==true) && (A15on==true) && (A16on==true)){
background(0);
font = loadFont ("ArialRoundedMTBold-40.vlw");
textFont(font);
textAlign(CENTER,CENTER);
text(quotes[0], 400, 400);
fill(255);
}

else if
((B1on==true) && (B2on==true) && (B3on==true) && (B4on==true) && (B5on==true) && (B6on==true) && (B7on==true) && (B8on==true) && (B9on==true) && (B10on==true) && (B11on==true) && (B12on==true) && (B13on==true) && (B14on==true) && (B15on==true) && (B16on==true)){
background(0);
font = loadFont ("ArialRoundedMTBold-40.vlw");
textFont(font);
textAlign(CENTER,CENTER);
text(quotes[1], 400, 400);
fill(255);
}

else if
((C1on==true) && (C2on==true) && (C3on==true) && (C4on==true) && (C5on==true) && (C6on==true) && (C7on==true) && (C8on==true) && (C9on==true) && (C10on==true) && (C11on==true) && (C12on==true) && (C13on==true) && (C14on==true) && (C15on==true) && (C16on==true)){
background(0);
font = loadFont ("ArialRoundedMTBold-40.vlw");
textFont(font);
textAlign(CENTER,CENTER);
text(quotes[2], 400, 400);
fill(255);
}

else if
((D1on==true) && (D2on==true) && (D3on==true) && (D4on==true) && (D5on==true) && (D6on==true) && (D7on==true) && (D8on==true) && (D9on==true) && (D10on==true) && (D11on==true) && (D12on==true) && (D13on==true) && (D14on==true) && (D15on==true) && (D16on==true)){
background(0);
font = loadFont ("ArialRoundedMTBold-40.vlw");
textFont(font);
textAlign(CENTER,CENTER);
text(quotes[3], 400, 400);
fill(255);
}

}

No comments: