xxxxxxxxxx
47
function setup() {
createCanvas(400, 400);
background(random(255),random(255),random(255))
frameRate(50)
frietjes = loadImage('frietjes.png');
reisje = loadImage('reisjee.png');
strandje = loadImage('strandje.png');
feestje = loadImage('feestje.png');
hockey = loadImage('hockey.png');
tree = loadImage ('shoppen.jpg');
}
function draw() {
tint(200)
image(tree,0,0,400,400)
tint(300)
image(frietjes,50,50);
image(reisje, 10, 10);
image(strandje,210,270);
image(feestje,10,270);
image(hockey,300,10);
textSize(10);
fill(0);
textWrap(WORD);
if(mouseX > 60 && mouseX < 80 && mouseY > 60 && mouseY < 100) {text('veel reizen', 10,140,20);}
if(mouseX > 160 && mouseX < 180 && mouseY > 160 && mouseY < 190){text('maccie!!!!', 180,40,20);}
if(mouseX > 300 && mouseX < 320 && mouseY > 60 && mouseY < 100){ text('lekker blijven sporten (hockey)', 360,140,20);}
if(mouseX > 60 && mouseX < 80 && mouseY > 300 && mouseY < 340) {text('feestjes met vrienden',10,220,20);}
if(mouseX > 300 && mouseX < 320 && mouseY > 280 && mouseY < 320){ text('wijntje drinken op het strand', 360,200, 20);
}
fill(255, 153, 204)
if(keyIsPressed){
if(key == "p"){
for(x=0;250>x;x=x+250){
ellipse(100,200,50,50)
}}
}
}