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().

Words: Revised by Kasey Lichtlyter. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!