xxxxxxxxxx
20
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let lines = 'L1\nL2\nL3'; // "\n" is a "new line" character
textSize(12);
textLeading(10);
text(lines, 10, 25);
textLeading(20);
text(lines, 40, 25);
textLeading(30);
text(lines, 70, 25);
}