xxxxxxxxxx
81
//INSTRUCTIONS:
//Hover on the canvs to draw text
//Click to clear the canvas
let x = 300;
let y = 300;
let px = 300;
let py = 300;
let s = 300;
let r = 285;
function setup() {
createCanvas(400, 400);
colorMode(HSB);
background(11);
}
function draw() {
blendMode(ADD);
textSize(25);
// textFont("Liu Jian Mao Cao");
textFont("ZCOOL QingKe HuangYou");
noFill();
stroke(random(0, 251), 203, 245, 1);
strokeWeight(1);
textAlign(RIGHT, CENTER);
textLeading(36);
text('友\n谊\n地\n久\n天\n长', mouseX, mouseY);
translate(width/2, height/2);
push();
noFill();
strokeWeight(0.5);
stroke(random(0, 57),180, 38, 2);
ellipse(
random(-10, 10),
random(-10, 10),
r + random(-15, 20),
r + random(-20, 15)
);
noFill();
strokeWeight(1);
stroke(157, 8, random(50, 222), 2);
ellipse(
random(-2, 2),
random(-2, 2),
s + random(-5, 10),
s + random(-10, 5)
);
pop();
}
function mousePressed() {
clear();
background(11);
}