Examples Words

Words

The text() function is used for inserting text into the canvas. You can change the font and text size using the loadFont() and fontSize() functions. The text can be aligned left, center, or right with the textAlign() function, and, like shapes, text can be colored with fill().