Learn creative coding writing simple programs

25. Typing big letters that fade out

It's time to write some text on the screen using the text() function. The first parameter is the text you want to display, and the second and third parameters are the x and y position. With textSize() you can control how large the text is. If you call fill() before calling text() you can set the text color.
After some basic text() calls we create a program that writes anything you type on the screen. Each letter is written on a random position and with a random size. The letters then quickly fade out and disappear.


Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:
``` void setup() { size(600, 600); } ```