xxxxxxxxxx
12
function setup() {
createCanvas(250, 250);
}
function draw() {
background(220);
textAlign(LEFT, TOP);
textSize(48);
text("word",
constrain(mouseX, 0, width - textWidth("word")),
constrain(mouseY, 0, height - 48 + textDescent()));
}