Preload elements in P5.js
I have a JSON file that contains the names of the image files to be load. { "images": ["1.jpg", "2.jpg", "3.jpg"] } I use the preload() function to load the content of the JSON file using loadJSON() The problem is that loadJSON is asynchronous, so the information is not available immediately. When setup starts I… Read More Preload elements in P5.js