-
-
Notifications
You must be signed in to change notification settings - Fork 4
textAlign_
villares edited this page May 24, 2020
·
4 revisions
```pde
PFont font;
// The font must be located in the current sketch's
// "data" directory to load successfully
font = loadFont("EurekaMonoCond-Bold-20.vlw");
textFont(font, 20);
textAlign(RIGHT);
text("word", 50, 30);
textAlign(CENTER);
text("word", 50, 50);
textAlign(LEFT);
text("word", 50, 70);
#### Descrição
Sets the current alignment for drawing text. The parameters LEFT, CENTER, and RIGHT set the display characteristics of the letters in relation to the values for the **x** and **y** parameters of the **text()** function.
#### Sintaxe
```pde
textAlign(MODE)
Parâmetros MODE Either LEFT, CENTER, or RIGHT
Nenhum
Web & Applicações
A referência de Processing está sob a licença Creative Commons BY-NC conforme indicado aqui. Esta Wiki-tradução é baseada na tradução e adaptação para o Português do Brasil do professor Luiz Ernesto Merkle