FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Linguagem \ Ambiente \ Bibliotecas \ Comparação
 
   
   
Resumida (A-Z) \ Completa (A-Z)  
   
  Referência para Processing (BETA) version 91+. Se você tem uma versão anterior, utilize a documentação inclusa em seu software. Se você encontrar quaisquer erros ou tiver quaisquer comentários, leve ao nosso conhecimento.  
Nome  

textAlign()

   
Exemplos  
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  
textAlign(MODE)
   
Parâmetros  
MODE   Either LEFT, CENTER, or RIGHT

   
Retorno   Nenhum
   
Utilização   Web & Applicações
   
Relacionado   loadFont()
PFont
text()
 
 






   
 
Original em inglês atualizado em: Fri Jul 15 16:36:14 PDT 2005
Tradução para o Português do Brasil: Luiz Ernesto Merkle
Atuallizada em: 30 de novembro de 2005, 9h00 (BRST)
 
 








Creative Commons License
 
  Processing é um projeto aberto iniciado por Ben Fry e Casey Reas  
  © Info