xxxxxxxxxx
20
let myFont;
function preload() {
myFont = loadFont('Lobster-Regular.ttf')
}
function setup() {
createCanvas(500, 500);
}
function draw() {
background(0);
textSize(32);
fill(166, 255, 233);
textFont(myFont);
text("Hello World", 100, 100);
fill(204, 247, 188);
text("This is a piece of text", 200, 200)
}