Closed
Description
Increasing access
When we release p5 2.0, there will be some API changes. For ease of switching and for preservation purposes, we'd like to make an addon that re-introduces the old APIs so old sketches can continue to run.
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
Here's a running list of things we'll need to include:
- Handle
preload
and make it run beforesetup
- Make
load*
methods likeloadImage
immediately return an object instead of a promise
- Make
- Add back 1.x shape drawing API
- Add some color internals that are semi-commonly relied upon
-
color.levels
: an array of RGB values in [0, 255] -
color._array
: an array of RGB values in [0, 1]
-
- Make cameras auto-set themselves as the default camera on creation
- Attach p5 constants to
p5.Graphics
Metadata
Metadata
Assignees
Type
Projects
Status
Completed