📘 Renders text on the canvas.
string of text to display
x-coordinate of the text's position
y-coordinate of the text's position
Optional
maximum line width in characters
maximum number of lines
await Canvas(200, 100);background('silver');textSize(32);text('Hello, world!', -88, 10); Copy
await Canvas(200, 100);background('silver');textSize(32);text('Hello, world!', -88, 10);
await Canvas(200);background(0.8);textSize(20);let info = 'q5.js was designed to make creative coding fun and accessible for artists, designers, educators, and beginners.';text(info, -88, -70, 20);//// Copy
await Canvas(200);background(0.8);textSize(20);let info = 'q5.js was designed to make creative coding fun and accessible for artists, designers, educators, and beginners.';text(info, -88, -70, 20);////
📘 Renders text on the canvas.