xxxxxxxxxx
85
let t;
let s;
let lsize;
function setup() {
createCanvas(400, 400);
frameRate(1);
colorMode(HSB);
textAlign(CENTER,CENTER);
noStroke();
background(190,100,100);
}
function draw() {
fill(0,0,100);
textSize(90);
text("i love you", width/2, height/2);
}
function mouseClicked(){
loveBG();
}
function mouseDragged() {
// ellipse(mouseX, mouseY, 5, 5);
// // prevent default
// return false;
loveText();
loveBG();
lsize = lsize+1;
}
// function rectangle(){
// fill(255,100,100);
// rect(width/2,50,40,40);
// }
function loveText(){
lsize = 30;
textSize(lsize);
fill(0,0,0);
// stroke(0,0,100);
text("LOVE", random(width), random(height));
}
function loveBG(){
t=80;
s=50;
noStroke();
textSize(150);
fill(0,100,100);
text("YOU", width/2,t-10);
textSize(100);
fill(0,0,0);
text("DON'T", width/2,t+s*0.8);
text("KNOW", width/2,t+s*1.8);
textSize(140);
fill(0,100,100);
text("SHIT", width/2,t+s*2.6);textSize(130);
fill(0,0,0);
text("ABOUT", width/2,t+s*4);
// textSize(150);
fill(0,100,100);
// text("YOU", width/2,t-10);
textSize(140);
// text("SHIT", width/2,t+s*2.6);textSize(130);
text("LOVE", width/2,t+s*5.3);
}
function keyPressed() {
clear();
background(190,100,100);
}