This video tackles one of the bigger changes in p5.js 2: loading data with async and await! Fear not, I'll cover how to transition from preload and callbacks in p5.js 1.0 to using promises with async/await in 2.0.
The beta website for p5.js 2.0 with updated references and examples.
p5.js GitHub issue: Beta, Timeline, and Compatibility Addons
p5.js Discourse thread on the 2.0 release.
A public API for dog images used in the examples.
Learn more about loading data in p5.js 2.0.
Learn more about JavaScript Promises in depth.
Continue learning about JavaScript Promises.
- Editing
by Mathieu Blanchette
- Animations
by Jason Heglund