textAlign

v0.1.7
textAlign(mode);

Set a font alignment.

Arguments

modeCENTER, 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

See textAlign in typography.h