textAlign()
Typography / AttributesDescription
Sets the alignment for drawing text. The first parameter can be LEFT, CENTER, or RIGHT. The second parameter (optional) can be TOP, BOTTOM, CENTER, or BASELINE.
Syntax
void textAlign(int alignX)
void textAlign(int alignX, int alignY)
Parameters
| Name | Type | Description |
|---|---|---|
| alignX | int | LEFT, CENTER, or RIGHT |
| alignY | int | TOP, BOTTOM, CENTER, or BASELINE (optional) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...