xxxxxxxxxx
60
/*
meme and image
10/12/22
*/
var manthinkingImage;
var x =50;
function setup() {
createCanvas(600,400);
manthinkingImage = loadImage("manthinking.jpg");
textFont("Roboto", 20);
}
function mousePressed(){
save("Meme.jpg");
}
function draw() {
//background(200);
image(manthinkingImage,150,-60,330,470);
fill("white");
stroke("green");
strokeWeight(2);
text("I'm just here for the memes ", 230, 100);
noStroke();
ellipse(x,100,100);
x++;
}
var string2 =
"Memes.";
textAlign(CENTER);
textSize(20);
fill("green");
stroke("white");
strokeWeight(2);
var len = string2 .length;
var n = map(mouseX,0,width,0,len );
var s = string2.substring(0,n);
text(s,width/2,360);
textSize(20);
textLeading(20 * 1.5);