For this assignment, I decided to explore generating text in p5.js. I created a CSV file that contains words that are part of a meal such as the topping, side, drink and main. The blackboard generates a new and random “special meal” on every mouse click.
A part that I struggled with is making every meal generate randomly, which I tackled by writing the code below:
Row = split(strings[int(random(strings.length))], ',');
For improvements, I want to add more visuals. In addition, I want the topping to be randomized for every part of the meal rather than having the same topping for the main, side and drink.