7
Playing with Text
When you want to display text in Processing, it’s important to understand the basics of working with strings, and that’s where this project starts. Once you have the fundamentals down, I’ll show you how to create a font, make a rough typing program, and even create your own data dashboard in Processing.
Just like numbers, text and letters have data types associated with them. Individual letters fall under the char, or character, data type. Characters are normally written inside a pair of single quotes— for example, 'a'. A grouping of characters is called a string and is normally written in double quotes—for example, "Cool!".
THE STRING DATA TYPE
The String data type holds—you guessed it—strings. Just as with any other data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access