textAlign(mode);
Set a font alignment.
Arguments
mode
CENTER
, LEFT
, RIGHT
function setup()
createWindow(200, 200);
textAlign(CENTER);
end
function draw()
background('purple');
text('Hello lu5!', width/2, height/2);
point(width/2, height/2);
end
Output