The library is available from JSDelivr:
- p5.js - https://cdn.jsdelivr.net/npm/p5@2.0.0-beta.3/lib/p5.js
- p5.min.js - https://cdn.jsdelivr.net/npm/p5@2.0.0-beta.3/lib/p5.min.js
You can duplicate this p5.js web editor project: https://editor.p5js.org/davepagurek/sketches/RwD_DbVR7
You can also import p5 directly from NPM as an ESM module. More documentation on ESM usage to come.
What's Changed
What's Changed 🎊
- Minor refactors, cleanup, comments by @dhowe in #7521
- Text adjustments by @dhowe in #7523
- Remove wrong rendererGL textWidth function by @seyko1 in #7524
- Replaced deprecated keyCode functionality and docs with KeyboardEvent.code & KeyboardEvent.key also updates the keyIsDown function to accept alphanumerics as parameters by @Vaivaswat2244 in #7472
- Clean up modifier key constants by @davepagurek in #7526
- Interleave example between other docs by @davepagurek in #7466
- Add splineProperties by @davepagurek in #7528
- 2.0 perf updates by @davepagurek in #7543
- fixed vertex property to take single digits by @Vaivaswat2244 in #7547
- Add warning when using preload function by @aferriss in #7542
- Two fixes for #7486 by @dhowe in #7555
- [p5.js 2.0] Documentation updates by @limzykenneth in #7558
- Stop future errors when encountering an async error by @davepagurek in #7563
- Add screenToWorld function mirroring worldToScreen by @bojidar-bg in #7561
- [p5.js 2.0] Attach p5.Element methods to WebGL canvas by @limzykenneth in #7567
- [p5.js 2.0] Expose global drawingContext by @limzykenneth in #7572
- Fix saveCanvas for framebuffers by @davepagurek in #7576
New Contributors
- @seyko1 made their first contribution in #7524
- @Vaivaswat2244 made their first contribution in #7472
- @bojidar-bg made their first contribution in #7561
Full Changelog: v2.0.0-beta.2...v2.0.0-beta.3