textSize(size);
Set a font size.
Arguments
size
The size of the font in pixelsIf this is called using fonts, make sure to call textSize
after calling textFont
function setup()
createWindow(200, 200);
end
function draw()
background('purple');
textSize(48); -- Larger text
text('Hello lu5!', 0, 120);
end
Output