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 by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.