Name

textAlign()

Examples
background(0)
textSize(16)
textAlign(RIGHT)
text("ABCD", 50, 30)
textAlign(CENTER)
text("EFGH", 50, 50)
textAlign(LEFT)
text("IJKL", 50, 70)
background(0)
stroke(153)
textSize(11)
textAlign(CENTER, BOTTOM)
line(0, 30, width, 30)
text("CENTER,BOTTOM", 50, 30)
textAlign(CENTER, CENTER)
line(0, 50, width, 50)
text("CENTER,CENTER", 50, 50)
textAlign(CENTER, TOP)
line(0, 70, width, 70)
text("CENTER,TOP", 50, 70)
Description
Syntax
Parameters
mode
modeX
modeY
Related loadFont()
PFont
text()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License