Categories
amidoinitrite homework

Loading text files

Making my way through the Loading text files from the hard drive recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe, I learned how to use the loadStrings() function to load a text file from my hard drive into the String array. I also learned how to loop through the array in the draw() function and then use the number of characters in each line of text to calculate the diameter for the ellipse to be drawn.

Screen-Shot-2014-12-14-at-6.06.55-pm

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php