Example 1: Mouse Size Type
Code
function setup() {
createCanvas(400, 400);
textAlign(CENTER, CENTER);
}
function draw() {
background(250);
const sz = map(mouseX, 0, width, 16, 96, true);
textSize(sz);
fill(255, 45, 140);
text('P5', width / 2, height / 2);
textSize(14);
fill(30);
text('Move mouse left/right', width / 2, height - 24);
}Try this: Map mouseY to letter spacing using manual x offsets.