loadFont(path);
Load a font
Arguments
path
The font path on the local systemReturns
font
The image referencefunction setup()
createWindow(600, 600);
font = loadFont('/path/to/myfont.ttf');
end
function draw()
background(51);
textFont(font);
text('Hello from lu5!', 30, 50);
end