The library is available from JSDelivr:
- p5.js - https://cdn.jsdelivr.net/npm/p5@2.0.0-beta.2/lib/p5.js
- p5.min.js - https://cdn.jsdelivr.net/npm/p5@2.0.0-beta.2/lib/p5.min.js
You can also import p5
directly from NPM as an ESM module. More documentation on ESM usage to come.
What's Changed
- Merged main into 2.0
- Fix bug where
pixels
is not available
What's Changed 🎊
- Fix panorama() by @davepagurek in #7154
- Fix unnecessary console warnings when using smooth() on P2D Graphics objects by @zeesworth in #7159
- added paletteLerp by @RandomGamingDev in #6960
- imageLight - panorama shader bug, added @perminder-17 code snippet by @PimTournaye in #7169
- Tie FES initialization to only run just before p5 init by @limzykenneth in #7173
- Code block updates in
vertex.js
by @DenisovichDev in #7174 - Fix incorrect pixel offset in updatePixels() by @Forchapeatl in #7177
- fix for #7181 by @orrkislev in #7182
- Fix Camera.eyeX comment by @Psychpsyo in #7184
- Solves issue #6891 by @Garima3110 in #7165
- Fix: Added unique group names for radio buttions by @Forchapeatl in #7162
- add non-code contributions to contrib guidelines readme by @sarahciston in #6941
- Caps at the beginning of the curve by @diyaayay in #7201
- Added useLinePerspective to cam copy properties by @TiborUdvari in #7213
- Update README.md to include an updated get started link by @willallstet in #7232
- Fix : broken link in contributor_docs/webgl_mode_architecture.md by @ashwanidey in #7235
- Fix broken links in contributor_docs/steward_guidelines.md by @aleannab in #7240
- Fix broken link in contributing_to_the_p5js_references.md by @aleannab in #7242
- Fix : broken link in contributor_docs/webgl_contribution_guide.md by @ashwanidey in #7239
- Fix Broken README Link by @benpalevsky in #7216
- Fix clipping bug with ellipses by @jeanetteandrews in #7249
- Fixed the broken link on p5.js website page for "p5.js Web Accessibility" by @shourysingh07 in #7254
- Fixed the broken link on p5.js website page for "Our Focus on Access" by @shourysingh07 in #7255
- Fixed broken links for p5js references by @visheshrwl in #7253
- fix: added
WEBGL
mode for correct blendMode(SUBTRACT) behavior by @Abhinavcode13 in #7229 - fix: broken links in lerpColor() by @M0nica in #7241
- Refactor arc and rect to use canvas methods rather than curves by @ksen0 in #7205
- Fix broken links in contributor_docs/access.md by @aleannab in #7243
- Fixed the broken link on p5.js website page for "WebGL Contribution Guide". by @shourysingh07 in #7263
- Fixed the broken link on p5.js website page for "How to add Friendly Error Messages" by @shourysingh07 in #7264
- Shader hooks by @davepagurek in #7149
- Add list support for
lerpColor
like other color functions by @RandomGamingDev in #6954 - Remove 2.0 built file by @davepagurek in #7274
- Added textAscent and textDescent functions on Webgl by @Forchapeatl in #7187
- Line.vert fix for small units by @TiborUdvari in #7206
- fixed textpoint alignment by @mathewpan2 in #6967
- Fixed minor error in documentation for p5.Vector.sub() by @jaredberghold in #7265
- Rename default shader methods to have a base* prefix by @davepagurek in #7288
- Performance improvements for WebGL shape drawing by @davepagurek in #7287
- Change Reference Example by @samarsrivastav in #7280
- Fix example of createModel function. by @shibomb in #7298
- fix missing example tag in documentation for color's toString method by @ashish1729 in #7302
- fixed nf to work with negative number by @Akhilbisht798 in #7054
- textureData updated to fix flipping property for webgl by @MuktiMishra in #7305
- Fixes language reference and Markdown syntax by @danicruz0415 in #7314
- fix typo by @asukaminato0721 in #7322
- Fix ellipseMode(CORNERS) and rectMode(CORNER) by @martinleopold in #7290
- add usage of dist by @asukaminato0721 in #7324
- Fix broken links in contributor-doc by @shibomb in #7320
- Fix broken links in website references by @shibomb in #7321
- Uses canvas dimensions instead of arbitrary constants for
noise()
andnoiseDetail()
by @RandomGamingDev in #7330 - mouseY reference first example issue fixed by @shourysingh07 in #7311
- Docs: "A maximum of 5 directional lights can be active at once." by @blackboxlogic in #7337
- Switch all-contributor shield styling to match other shields by @SableRaf in #7347
- Fix a typo (dpeth -> depth) in webgl/p5.Framebuffer.js by @zs-5 in #7348
- Save/restore textureMode with push/pop by @davepagurek in #7358
- fix: Correct typo, improve createRadio() method description, and simplify input tag by @Dhanush111 in #7315
- Update links to point to tutorial page by @muffinista in #7318
- fix add alpha doc by @asukaminato0721 in #7362
- Negative dimensions will mirror rect() again by @martinleopold in #7363
- fixes issue #7366: Adjust Option Orientation in CreateRadio() reference. by @Prajyot05 in #7367
- Added ability to use setUniform for textures by texture slot rather than by p5.Texture by @RandomGamingDev in #7395
- The text properly displayed on Mobile. by @mahi6299 in #7399
- Updated README by @ksen0 in #7408
- Update p5.Geometry.js by fixed cap color problem by @mahaidong in #7413
- Added support for other WebGL sampler types by @RandomGamingDev in #7411
- fixed repeated key presses when a modifier key is held by @Rishab87 in #7435
- Fix typo in image.js docs by @reidab in #7462
- Add and adjust alpha parameter description by @FrauBoes in #7420
- Documentation Update:Webgl - .lib files not supported by @atmajaa in #7454
- Add 0 check before dividing color by alpha by @davepagurek in #7478
- Fix usage of model() in buildGeometry() by @davepagurek in #7479
- Fix WebGL text alignment + add tests by @davepagurek in #7481
- Implement splineProperty by @davepagurek in #7471
- Documentation Foundation Class: remove dupe example and describe color by @philyawj in #7483
- Fixed typo in p5.Shader.js documentation comment by @ImRAJAS-SAMSE in #7458
- Update sketch verifier to check for redefinitions and print friendly messages by @sproutleaf in #7326
- Add angle param clarification to sin(), cos(), and tan() by @thrly in #7475
- fixed some broken links in markdown files by @lirenjie95 in #7485
- Fix buildGeometry absorbing the ambient fill color by @davepagurek in #7489
- Fix closed curves having extra loops by @davepagurek in #7495
- Fix FES errors, parameter data omitting classes by @davepagurek in #7497
- Merge main into dev-2.0 by @davepagurek in #7509
New Contributors
- @zeesworth made their first contribution in #7159
- @PimTournaye made their first contribution in #7169
- @DenisovichDev made their first contribution in #7174
- @Forchapeatl made their first contribution in #7177
- @orrkislev made their first contribution in #7182
- @Psychpsyo made their first contribution in #7184
- @sarahciston made their first contribution in #6941
- @TiborUdvari made their first contribution in #7213
- @willallstet made their first contribution in #7232
- @ashwanidey made their first contribution in #7235
- @aleannab made their first contribution in #7240
- @benpalevsky made their first contribution in #7216
- @jeanetteandrews made their first contribution in #7249
- @shourysingh07 made their first contribution in #7254
- @visheshrwl made their first contribution in #7253
- @M0nica made their first contribution in #7241
- @mathewpan2 made their first contribution in #6967
- @jaredberghold made their first contribution in #7265
- @samarsrivastav made their first contribution in #7280
- @Akhilbisht798 made their first contribution in #7054
- @MuktiMishra made their first contribution in #7305
- @danicruz0415 made their first contribution in #7314
- @martinleopold made their first contribution in #7290
- @blackboxlogic made their first contribution in #7337
- @zs-5 made their first contribution in #7348
- @Dhanush111 made their first contribution in #7315
- @muffinista made their first contribution in #7318
- @Prajyot05 made their first contribution in #7367
- @mahi6299 made their first contribution in #7399
- @mahaidong made their first contribution in #7413
- @reidab made their first contribution in #7462
- @FrauBoes made their first contribution in #7420
- @atmajaa made their first contribution in #7454
- @philyawj made their first contribution in #7483
- @ImRAJAS-SAMSE made their first contribution in #7458
- @thrly made their first contribution in #7475
- @lirenjie95 made their first contribution in #7485
Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2