void bildauswahl(){ PImage bild = loadImage("bild1.jpg"); if (x1>=9 && x1<=77){ noFill(); stroke(0); rect(9,menuehoehe-1,68,79); stroke(255); rect(98,menuehoehe-1,68,79); rect(187,menuehoehe-1,68,79); rect(276,menuehoehe-1,68,79); bild = loadImage("bild1.html"); image(bild,10,10); } if (x1>=98 && x1<=166){ noFill(); stroke(255); rect(9,menuehoehe-1,68,79); stroke(0); rect(98,menuehoehe-1,68,79); stroke(255); rect(187,menuehoehe-1,68,79); rect(276,menuehoehe-1,68,79); bild = loadImage("bild2.html"); image(bild,10,10); } if (x1>=187 && x1<=255){ noFill(); stroke(255); rect(9,menuehoehe-1,68,79); rect(98,menuehoehe-1,68,79); stroke(0); rect(187,menuehoehe-1,68,79); stroke(255); rect(276,menuehoehe-1,68,79); bild = loadImage("bild3.html"); image(bild,10,10); } if (x1>=276 && x1<=344){ noFill(); stroke(255); rect(9,menuehoehe-1,68,79); rect(98,menuehoehe-1,68,79); rect(187,menuehoehe-1,68,79); stroke(0); rect(276,menuehoehe-1,68,79); bild = loadImage("bild4.html"); image(bild,10,10); } }