Open
Description
Increasing access
Would make it easier to identify p5.Image objects in the console and could also be useful for p5 addons.
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
Feature request details
When storing images in arrays it can be difficult for users to keep track of which p5.Image object corresponds to what image file.
This could be especially true in p5.js v2 if the user wants to load images in parallel using Promise.all
.
Storing the image's url path on p5.Image objects in either a src
property could alleviate this.