text()
Typography / Loading & DisplayingDescription
Draws text to the screen. With a bounding box (x, y, w, h), text wraps automatically.
Syntax
void text(std::string str, float x, float y)
void text(std::string str, float x, float y, float w, float h)
Parameters
| Name | Type | Description |
|---|---|---|
| str | std::string | the string to display |
| x | float | x-coordinate |
| y | float | y-coordinate |
| w | float | width of text box (optional) |
| h | float | height of text box (optional) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...