v1.6.0
What's Changed 🎊
This release helps make p5.js WebGL mode work more like 2D mode: shape drawing, transparency, blend modes, and strokes with support for line caps and joins. WebGL mode can now blend colors along vertices and curves in strokes in addition to fills. We've also included lots of bug fixes for text, textures, and gif exports, including letting you export gifs from setup(). Thanks @davepagurek for the summary! Thanks @limzykenneth for supporting the release process! - @Qianqianye 💜
- Fix release action error due to unset secret by @limzykenneth in #5837
- Check for the existence of _friendlyAutoplayError before calling it by @davepagurek in #5825
- Handle v1.div(v2) when vectors are 2D by @davepagurek in #5834
- Enable WebGL blending when drawing with shaders by @davepagurek in #5856
- Handle MULTIPLY with alpha in WebGL by @davepagurek in #5855
- Change curAmbientColor to [1, 1, 1, 1] by @jwdunn1 in #5858
- Fix visual glitches in WebGL font rendering by @davepagurek in #5860
- getTargetFrameRate issue #5762 by @sz245 in #5839
- Update .all-contributorsrc by @dwight9339 in #5862
- Add Entry for GSoC 2022 Wrapup by @Malayvasa in #5863
- Fix tint() for p5.MediaElement by @davepagurek in #5871
- Improved the example code for
createCamera()
! by @Brahvim in #5873 - Minor corrections regarding of the text function. by @inaridarkfox4231 in #5885
- Fix palette generation bugs in saveGif() by @davepagurek in #5883
- Clear depth when background() is called by @davepagurek in #5886
- Update attributes.js by @UnityOfFairfax in #5424
- Fixed
curvePoint
andcurveTangent
ignoringcurveTightness
by @sparshg in #5638 - Add static versions of existing mutable vector functions by @weslord in #5044
- About behavior of resetMatrix function in webgl by @inaridarkfox4231 in #5899
- Match TRIANGLE_FAN strokes in WebGL mode by @davepagurek in #5901
- fix the behavior of the quad function. by @inaridarkfox4231 in #5905
- Match line drawing orientation to primitive face by @inaridarkfox4231 in #5906
- Use TESS as the default shape mode in WebGL by @davepagurek in #5909
- Fix texture coordinate warning when using beginShape(TESS) by @davepagurek in #5910
- Turn on premultiplied alpha (and alpha) by default by @davepagurek in #5917
- Support beginShape(TESS) for faces that don't face the camera by @davepagurek in #5914
- Modify the shader so that the line can be colored per vertex by @inaridarkfox4231 in #5915
- GSoD: another round of edits to contributor docs by @limzykenneth in #5841
- Modify bezierVertex() and quadraticVertex() so that curFillColor becomes an interpolated value by @inaridarkfox4231 in #5920
- Unbind textures when done with a shader by @davepagurek in #5923
- Fix WebGL vertex stroke colors for retained mode + some shape modes by @davepagurek in #5928
- Revert "Bump flat and mocha" by @davepagurek in #5939
- Made image loading failure in preload() not to stop whole process by @r21nomi in #5918
- fix: saveGif's third argument made more optional by @Neilblaze in #5931
- Modify the lightingShader to allow per-vertex coloring by @inaridarkfox4231 in #5938
- Update mocha to latest version by @limzykenneth in #5944
- Fixed Typos in steward_guidelines.md by @ChinmayKadam172 in #5945
- fix : setPosition and move method modified in p5.Camera.js by @Prateek462003 in #5949
- please add my name to the contibuter list by @aditya-shrivastavv in #5963
- Stroke cap+join support for WebGL by @davepagurek in #5802
- Disable unused vertexAttribute to avoid environment-dependent vanishing bugs by @inaridarkfox4231 in #5970
- Fix Frame Rate higher than target on high refresh rate displays (>200Hz) by @JoeCastor in #5847
- Make the orientation of triangle() clockwise by @inaridarkfox4231 in #5978
- fixes the semitransparent stroke disabled by @Prateek462003 in #5985
- Omit processing to the 4th argument in p5.js webgl stroke() by @inaridarkfox4231 in #5989
- Resolves Issue #5511 : GIF's don't update when using setUniform by @AryanKoundal in #5986
- Fix textureWrap REPEAT for WebGL Power Of Two Image Element by @kate-grant in #5987
- Don't run draw right after setup if saving a gif by @davepagurek in #6002
- Fixed line drawing in WebGL when there is a previously defined texture by @leslieyip02 in #5982
- fixed incorrect movement of box by @yogitheboss in #6009
- Resolves Issue#5958 3D orbitControl allowing +-90 degrees not enough. by @AryanKoundal in #6012
By @dependabot
- Bump express from 4.16.2 to 4.18.2 by @dependabot in #5887
- Bump simple-git from 3.5.0 to 3.15.0 by @dependabot in #5889
- Bump flat and mocha by @dependabot in #5922
- Bump minimatch from 3.0.4 to 3.0.8 by @dependabot in #5930
- Bump json5 from 2.1.1 to 2.2.3 by @dependabot in #5929
- Bump simple-git from 3.15.0 to 3.16.0 by @dependabot in #5979
- Bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in #6003
New Contributors 💗
Contributed to p5.js GitHub repo
- @jwdunn1 made their first contribution in #5858
- @sz245 made their first contribution in #5839
- @dwight9339 made their first contribution in #5862
- @Malayvasa made their first contribution in #5863
- @Brahvim made their first contribution in #5873
- @inaridarkfox4231 made their first contribution in #5885
- @UnityOfFairfax made their first contribution in #5424
- @sparshg made their first contribution in #5638
- @r21nomi made their first contribution in #5918
- @Neilblaze made their first contribution in #5931
- @ChinmayKadam172 made their first contribution in #5945
- @Prateek462003 made their first contribution in #5949
- @aditya-shrivastavv made their first contribution in #5963
- @JoeCastor made their first contribution in #5847
- @AryanKoundal made their first contribution in #5986
- @kate-grant made their first contribution in #5987
- @leslieyip02 made their first contribution in #5982
- @yogitheboss made their first contribution in #6009
Added by @allcontributors
Contributed to p5.js-website GitHub repo, reviewing, reporting bugs, translation, creating add-on libraries, event organizing, design, etc.
- @raclim made their first contribution for code, added by @allcontributors in #5845
- @lf32 made their first contribution for bug, doc, and 3 more, added by @allcontributors in #5876
- @Brahvim made their first contribution for doc, added by @allcontributors in #5884
- @UnityOfFairfax made their first contribution for code, added by @allcontributors in #5895
- @inaridarkfox4231 made their first contribution for code, added by @allcontributors in #5896
- @jwdunn1 made their first contribution for bug, and code, added by @allcontributors in #5897
- @Malayvasa made their first contribution for design, and code, added by @allcontributors in #5898
- @wagedu made their first contribution for bug, added by @allcontributors in #5903
- @weslord made their first contribution for doc, and test, added by @allcontributors in #5904
- @ChinmayKadam172 made their first contribution for doc, added by @allcontributors in #5950
- @pinky-pig made their first contribution for translation, added by @allcontributors in #5935
- @Prateek462003 made their first contribution for code, added by @allcontributors in #5954
- @aditya-shrivastavv made their first contribution for bug, code, and doc, added by @allcontributors in #5965
- @davidbmx made their first contribution for bug, and code, added by @allcontributors in #5976
- @AryanKoundal made their first contribution for code, added by @allcontributors in #5990
- @alptugan made their first contribution for code, plugin, and 3 more, added by @allcontributors in #5992
- @ltciro made their first contribution for translation, added by @allcontributors in #5993
- @kate-grant made their first contribution for bug, code, and test, added by @allcontributors in #6004
- @yogitheboss made their first contribution for example, added by @allcontributors in #6011
- @holomorfo made their first contribution for translation, added by @allcontributors in #6014
- @quinton-ashley made their first contribution for code, bug, and plugin, added by @allcontributors in #6016
- @ninioArtillero made their first contribution for translation, added by @allcontributors in #6019
- @hvillase made their first contribution for translation, added by @allcontributors in #6023
- @shivanshsharma13 made their first contribution for translation, added by @allcontributors in #6024
- @Elliot-Hernandez made their first contribution for translation, added by @allcontributors in #6025
- @hunahpu18 made their first contribution for translation, added by @allcontributors in #6027
You can find all of our contributors in our README. Thank you to all the contributors! 💜
Full Changelog: v1.5.0...v1.6.0