v1.7.0
What's Changed 🎊
Thanks to all the contributors! - Qianqian
WebGL
1.7.0 adds WebGL2 support, provides tools for smoother camera movement and more natural orbitControl() thanks to a number of improvements by @inaridarkfox4231. It also introduces createFramebuffer() for fast layering and feedback, as well as the ability to read 3d depth information. - Thanks @davepagurek for the summarization
- Add WebGL2 support by @davepagurek in #6035
- #6022 Issue:Update light.js by @nikhilhvr in #6053
- Add Framebuffer support by @davepagurek in #6072
- Improve zooming behavior with orbitControl() by @inaridarkfox4231 in #6105
- Implement load/updatePixels() and get() for framebuffers by @davepagurek in #6109
- Specification change for ortho() and frustum(), and implementation of scaling in orbitControl() of ortho() by @inaridarkfox4231 in #6111
- Align the method of moving the camera with the right button in orbitControl() to the movement of the mouse by @inaridarkfox4231 in #6116
- Enable orbitControl() on mobile environment by @inaridarkfox4231 in #6119
- Fix lights() to properly specify gray by @inaridarkfox4231 in #6128
- Default ambientMaterial to the base material color if unspecified by @davepagurek in #6130
- Allow texture() to work under specular in WEBGL mode by @inaridarkfox4231 in #6138
- Improve orbitControl() to make it smoother by @inaridarkfox4231 in #6140
- Prevent _orbit() inside orbitControl() from making up vector parallel to y-axis by @inaridarkfox4231 in #6150
- Improvement of orbitControl(): Behavior when going out of canvas during operation by @inaridarkfox4231 in #6169
- Add EasyCam-like behavior to orbitControl() as an option by @inaridarkfox4231 in #6176
- In orbitControl(), use movedX,Y instead of difference of mouseX,Y by @inaridarkfox4231 in #6192
- Fix bugs in saveGif for WebGL2 contexts by @davepagurek in #6201
- Make sure p5.Graphics size is correct before resizing framebuffers by @davepagurek in #6234
- implementation of p5.Camera.set() function by @inaridarkfox4231 in #6243
- implement p5.Camera.slerp(), 3x3Matrix functions and minor spec-change of orbitControl() by @inaridarkfox4231 in #6251
- In p5.Camera.slerp, change the eye-center distance interpolation to be logarithmically based by @inaridarkfox4231 in #6259
- fix triangle() orientation in webgl mode by @inaridarkfox4231 in #6263
FES
- FES throws an error when non globally exposed function's name used in other context by @aditya-shrivastavv in #6055
- [FES] Replace throw error with FES by @chechenxu in #6098
- Correct msgWithReference logic in FES to fix issue 5576 by @Ayush23Dash in #6221
- Update FES check for internal errors to support ES6 classes by @davepagurek in #6244
Documentation
- Removed custom navbar.md in Korean translation of contributors docs by @al6862 in #6039
- Translation of the contribution guidelines to arabic by @MostafaEwis in #6017
- contributing doc by @Bernice55231 in #6102
- update documentation of ambientMaterial() by @ArshM17 in #6146
- Typo fixed: "The file maybe be loaded..." to "The file may be loaded..." by @camelCaseSensitive in #6149
- WebGL mode documentation improvements by @wong-justin in #6167
- contributor_docs zh trans by @wuyudi in #6199
- Add a style guide for documentation. Addresses #6178 by @nickmcintyre in #6206
- add fes zh trans by @wuyudi in #6210
- Edit docs for 2D primitives. Resolves #6217 by @nickmcintyre in #6218
- Edit color creating & reading docs. Addresses #6219 by @nickmcintyre in #6223
- Fix typos in contributor docs. Resolves #6227 by @zelf0 in #6228
- Update doc guides to use let for declarations by @nickmcintyre in #6232
- Update code samples for 2D primitives. Resolves #6239 by @nickmcintyre in #6240
Dependencies
- Bump tough-cookie from 2.3.3 to 4.1.3 by @dependabot in #6256
Others
- Bug fix for frameRate() by @quinton-ashley in #6015
- Updating JSDocs and module URLs by @konstantinstanmeyer in #6036
- Build output cleanup by @Ucodia in #6028
- removed .prettierrc file by @aditya-shrivastavv in #6044
- nf() handling exponential numbers and roundingOff decimal part correctly by @aditya-shrivastavv in #5973
- #6006 issue: Update p5.Color.js by @sawaisinghh in #6047
- Fix malformed json in .all-contributorsrc by @davepagurek in #6051
- Fix updatePixels() for media elements by @davepagurek in #6046
- Allow textAlign(CENTER, CENTER) with max width but no max height by @sawaisinghh in #6060
- Apply blendMode inside _drawPoints by @inaridarkfox4231 in #6069
- Fix gifs not animating in 1.6.0 by @davepagurek in #6067
- rename identifier
globalFunctions
toclassesWithGlobalFns
by @aditya-shrivastavv in #6076 - use es6-style class for some classes. by @wuyudi in #6075
- Fix black first frame when rendering gifs in setup by @davepagurek in #6081
- Make gif test less flaky by @davepagurek in #6090
- changed mousePressed reference description issue#6045 and variable name of example by @yogitheboss in #6059
- added deletion of the success message in the saveGif function by @agrshch in #6086
- Simplified isNumber function by @anpanring in #6095
- Do away with strokeIndices and construct Geometry directly with edges by @inaridarkfox4231 in #6121
- Factor transformations into position and area for shapes' accessible outputs - addresses #4721 by @calebfoss in #6122
- Replace os import to always use '\n' for EOL - resolves #6038 by @calebfoss in #6124
- fix min() and max() crashing on large arrays by @pmarsh-scottlogic in #6129
- Added enable() option for createSelect() by @Aqmalp99 in #6132
- Do not use angleBetween() for angle calculation in _orbit() inside orbtiControl(). by @inaridarkfox4231 in #6154
- more class to es6 by @wuyudi in #6088
- Update offline docs CSS from p5.js-website by @davepagurek in #6177
- #6164 Fixes inability to display single-frame GIFs by @ozramos in #6171
- Changed em tags (asterisks) to multiplication symbols by @Acha0203 in #6183
- fix missing extends by @wuyudi in #6187
- convert some missing class. by @wuyudi in #6173
- use atan2 to calculate angleBetween() by @inaridarkfox4231 in #6205
- implementation of p5.Vector slerp function by @inaridarkfox4231 in #6222
- add missing chainable/doc. by @wuyudi in #6209
- Supporting existing canvas element for createCanvas() and createGraphics() by @ffd8 in #6229
- Don't unpack premultiply alpha for text data textures by @davepagurek in #6236
- Clean up YUIDoc warnings by @limzykenneth in #6246
- Edit color setting docs. Addresses #6219 by @zelf0 in #6226
- Update offlnie reference CSS to fix bullets in class fields/methods by @davepagurek in #6250
- try convert remaining to class by @wuyudi in #6174
New Contributors
- @quinton-ashley made their first contribution in #6015
- @konstantinstanmeyer made their first contribution in #6036
- @al6862 made their first contribution in #6039
- @sawaisinghh made their first contribution in #6047
- @MostafaEwis made their first contribution in #6017
- @wuyudi made their first contribution in #6075
- @nikhilhvr made their first contribution in #6053
- @agrshch made their first contribution in #6086
- @anpanring made their first contribution in #6095
- @Bernice55231 made their first contribution in #6102
- @chechenxu made their first contribution in #6098
- @pmarsh-scottlogic made their first contribution in #6129
- @Aqmalp99 made their first contribution in #6132
- @camelCaseSensitive made their first contribution in #6149
- @ArshM17 made their first contribution in #6146
- @ozramos made their first contribution in #6171
- @Acha0203 made their first contribution in #6183
- @wong-justin made their first contribution in #6167
- @zelf0 made their first contribution in #6228
- @Ayush23Dash made their first contribution in #6221
Added by @allcontributors
Contributed to p5.js-website GitHub repo, reviewing, reporting bugs, translation, creating add-on libraries, event organizing, design, etc.
- docs: add dewanshDT as a contributor for bug by @allcontributors in #6029
- docs: add konstantinstanmeyer as a contributor for doc by @allcontributors in #6037
- docs: add al6862 as a contributor for bug, and code by @allcontributors in #6041
- docs: add monmon2003 as a contributor for code by @allcontributors in #6043
- docs: add kr-2003 as a contributor for bug by @allcontributors in #6049
- docs: add nown1ne as a contributor for bug, and code by @allcontributors in #6050
- docs: add sawaisinghh as a contributor for doc by @allcontributors in #6052
- docs: add anpanring as a contributor for bug by @allcontributors in #6057
- docs: add Aryan1982 as a contributor for code by @allcontributors in #6058
- docs: add MostafaEwis as a contributor for translation by @allcontributors in #6061
- docs: add nabilhassein as a contributor for translation by @allcontributors in #6062
- docs: add sawaisinghh as a contributor for bug, and code by @allcontributors in #6065
- docs: add wuyudi as a contributor for translation by @allcontributors in #6073
- docs: add agrshch as a contributor for code by @allcontributors in #6087
- docs: add shibomb as a contributor for code by @allcontributors in #6092
- docs: add siddhant1 as a contributor for bug, and code by @allcontributors in #6108
- docs: add calebfoss as a contributor for ideas, review, and plugin by @allcontributors in #6112
- docs: add chechenxu as a contributor for code by @allcontributors in #6113
- docs: add pmarsh-scottlogic as a contributor for code by @allcontributors in #6131
- docs: add ozramos as a contributor for code by @allcontributors in #6180
- docs: add munusshih as a contributor for code by @allcontributors in #6185
- docs: add wuyudi as a contributor for code by @allcontributors in #6186
- docs: add peilingjiang as a contributor for code, design, and translation by @allcontributors in #6194
- docs: add Decoy4ever as a contributor for code by @allcontributors in #6195
- docs: add shujuuu as a contributor for bug, ideas, and design by @allcontributors in #6198
- docs: add neondev27 as a contributor for translation by @allcontributors in #6160
- docs: add lindapaiste as a contributor for bug, code, and 2 more by @allcontributors in #6197
- docs: add wong-justin as a contributor for code, and doc by @allcontributors in #6224
- docs: add aceslowman as a contributor for code, and doc by @allcontributors in #6225
- docs: add nbriz as a contributor for review by @allcontributors in #6241
- docs: add Ayush23Dash as a contributor for code by @allcontributors in #6242
- docs: add zelf0 as a contributor for doc by @allcontributors in #6254
Full Changelog: v1.6.0...v1.7.0