FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

textAlign()

   
Examples  
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); 
Description   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.
   
Syntax  
textAlign(MODE)
   
Parameters  
MODE   Either LEFT, CENTER, or RIGHT

   
Returns   None
   
Usage   Web & Application
   
Related   loadFont()
PFont
text()
 
 






   
 
Updated: Fri Jul 15 16:36:14 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info