xxxxxxxxxx
21
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
howdy("Eva");
howdy("Sierra",150);
drawCustomRect(20, 20);
}
function drawCustomRect(x, y) {
rect(x, y, 50, 50);
}
function howdy(name) {
let message = "Howdy, " + name + "!";
textSize(random(16, 32));
text(message, random(width), random(height));
}