Modifică mărimea fontului folosit la afișarea textului.
Sintaxă:
textSize(N);
Parametru:
N
function setup() {
createCanvas(400, 400);
noLoop();
}
function draw() {
text("Dimensiunea implicită", 50,50);
textSize(10);
text("Text cu dimensiunea 10", 50, 100);
textSize(12);
text("Text cu dimensiunea 12", 50, 150);
textSize(24);
text("Text cu dimensiunea 24", 50, 200);
textSize(36);
text("Dimensiunea 36", 50, 250);
textSize(48);
text("Text 40", 50, 330);