Processing | Text | ||||||||||||
Quick Tutorial by John Park |
||||||||||||
TUTORIAL 5 :: | ||||||||||||
If you are enjoying using text and want to press it to another level, you may want to explore the split() command. The idea here is that you can load a lot of text into a STRING and then split that text up by what is called a delimiter (aka, a separator). This way, a paragraph of text can quickly become an array of text objects where each item in the array is a word from the paragraph. Here is a simple example: **************************************************************** The first line loads in the text into a single string called myText. Here is a simple example using a split() command and the random() command to randomly place words on a screen: DOWNLOAD HERE Here is a more advanced example: DOWNLOAD HERE |
||||||||||||
|
||||||||||||