xxxxxxxxxx
30
let currentPanel = 1;
function setup() {
createCanvas(400, 400);
}
function mousePressed () {
currentPanel = currentPanel + 1;
}
function draw() {
background(220);
if (currentPanel == 1) {
circle (100, 100, 100);
text ("click for the next page!", 180, 100);
textSize(20)
} else if (currentPanel == 2 ) {
triangle(300, 100, 350, 150, 250, 150);
text('LEMME GET A BONELESS PIZZA WIT A 2 LITER COKE', 30,300);
textSize(20)
} else if (currentPanel == 3 ) {
rect (100,300,50,50);
text("2 LITER MACHINE BROKE, WE GOT 1 LITER THO", 100, 250);
textSize(10);
}
}