Skip to main content



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.


text(str, x, y)


strthe ASCII characters to be displayed
xthe x-coordinate of text
ythe y-coordinate of text