xxxxxxxxxx
67
//Jonathan Armella_Meme_Image
//"Bear in a funny position" by Tambako the Jaguar is marked with CC BY-ND 2.0. //https://search.openverse.engineering/image/0b4be79f-2820-467f-91f7-a46c66aab30b
var x =400
var s ='HOW'
var s2= ''
var bearImage;
var counter=0;
function preload(){
bearImage = loadImage("Bear.jpg");}
function setup() {
createCanvas(x, x);
}
function mousePressed() {
counter++; // counter = counter + 1
if (counter > 10) {
counter = 0;
s ="HOW";
s2='';
}
}
function draw() {
background(220);
//imageMode(CENTER)
image(bearImage,0,0,x+50,height);
fill('white')
stroke('black');
strokeWeight(4);
textSize(30);
textStyle(BOLD);
textFont('Impact');
text(s, 20, 35);
text(s2,40,380);
if (counter == 1) {
s = "HOW";
} else if (counter == 2) {
s = ("HOW EVERY");
} else if (counter == 3) {
s = "HOW EVERY NEW YORKER";
} else if (counter == 4) {
s = "HOW EVERY NEW YORKER FEELS";}
else if (counter == 5) {
s2 = "ON";}
else if (counter == 6) {
s2 = "ON THE";}
else if (counter == 7) {
s2 = "ON THE FIRST";}
else if (counter == 8 ) {
s2 = "ON THE FIRST DAY";}
else if (counter == 9 ) {
s2 = "ON THE FIRST DAY OF";}
else if (counter == 10 ) {
s2 = "ON THE FIRST DAY OF SPRING";}
}