text
Description
Draws text to the screen. Displays the information specified in the first parameter on the screen in the position specified by the additional parameters. A default font will be used unless a font is set with the textFont function and a default size will be used unless a size is set with textSize. Change the color of the text with the fill function. Change the outline of the text with the stroke and strokeWeight functions.
Syntax
text(str, x, y)
Parameters
Parameter | Description |
---|---|
str | the ASCII characters to be displayed |
x | the x-coordinate of text |
y | the y-coordinate of text |