Release v2.0.0 beta - #7
Merged
Merged
Conversation
Add kitty example + resolve merge conflicts
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add p5.js v2.x support.
[2.0.0-beta]
Breaking Changes
p5is now a peer dependency. If you wish to use multiple versions, install the p5.js version via an npm alias ("p5-v2": "npm:p5@^2.0.0").P5B_P5_PKGnames the p5.js package to load, defaulting top5. The p5b implementation is auto-selected from the installed p5.js version.New Features
setup()/draw(); v1 still uses sync lifecycle.headless-gl) — shaders render headlessly. WebGL 2 is unsupported.Path2Dpolyfill — custom shapes replay through node-canvas.colorMode(HSB)CSS Color 4 string normalization.loadBytes(),loadStrings()/loadJSON()— load from HTTP URLs or local files.maxPoolSizeconfig — caps pooledcreateGraphicsobjects by dimension buckets (0disables pooling).preloadconfig is rejected under v2 (p5.js v2 removed thepreload()lifecycle).Bug Fixes
loadXML()throws a descriptive error as it is not implemented.Internal & Refactor
lib/.async/awaitcontained to the v2 p5b implementation.build-docs+validate:docs).Examples
examples/v1,examples/v2,examples/common.