What's Changed
In this release, p5.js added draggable()
to let you move around elements, added imageLight()
to get 3D lighting from images, added computeNormals(SMOOTH)
for custom smooth 3D geometry, and added support for custom filter shaders in 2D mode. We updated a group of p5.js Reference pages as part of 2023 Season of Docs (SoD) program, with a goal to make them more accessible and beginner-friendly. Thanks to the SoD technical writer @nickmcintyre.
What's Changed 🎊
DOM
WebGL
- A fix to the formatting of the documentation for endShape's instancing example by @RandomGamingDev in #6495
- Add param geometry in freeGeometry function-docs by @capGoblin in #6500
- Created fix for camera settings getting reset each time resizeCanvas() is called by @RandomGamingDev in #6216
- Made a new method to return Geometry with no internal colors. by @perminder-17 in #6498
- fix camera slerp() BUG by @inaridarkfox4231 in #6509
- Updated documentation for shaders. by @deveshidwivedi in #6497
- Image Light Feature - GSOC 2023 by @AryanKoundal in #6255
- Work Product Report | Improving p5.js WebGL/3d functionality by @AryanKoundal in #6442
- Fix webgl erase. Resolves #6523 by @acamposuribe in #6524
- Solves issue #6502 by @perminder-17 in #6503
- Solved the issue with Pan y-axis inverted in frameBuffer. by @perminder-17 in #6545
- Update computeNormals() to support smooth shading for buildGeometry() outputs by @capGoblin in #6553
- Added feature to saveCanvas() to support framebuffer by @capGoblin in #6510
- Fixes incorrect reference to constants in p5.Geometry.js by @diyaayay in #6577
- Handle premultiplied alpha in filter(OPAQUE) by @davepagurek in #6529
- Adding framebuffer support for filter() + CreateFilterShader for 2D mode by @perminder-17 in #6559
Documentation
- Edit docs for typography attributes by @nickmcintyre in #6454
- Edit docs for accessibility by @nickmcintyre in #6484
- Edit docs for p5.Element by @nickmcintyre in #6512
- Edit docs for environment by @nickmcintyre in #6505
- Revise docs for dom functions by @nickmcintyre in #6534
- Added comments to filter.js by @perminder-17 in #6547
- Edit docs for dom objects by @nickmcintyre in #6552
- Fix typo in JSDoc of the createVector method #6569 by @cabbage63 in #6574
- Solves issue #6519 by @Garima3110 in #6549
New Contributors 💗
- @deveshidwivedi made their first contribution in #6497
- @acamposuribe made their first contribution in #6524
- @diyaayay made their first contribution in #6537
- @wackbyte made their first contribution in #6522
- @cabbage63 made their first contribution in #6574
- @Jaivignesh-afk made their first contribution in #6557
- @SlightlyEpic made their first contribution in #6580
- @tabreturn made their first contribution in #6594
Full Changelog: v1.8.0...v1.9.0