p5 1.11.10 → 1.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/lib/addons/p5.sound.js +1 -1
- package/lib/p5.js +142 -17
- package/lib/p5.min.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@ Lead/Mentor Alumni
|
|
|
101
101
|
| Friendly Errors | [@IIITM-Jay](https://github.com/IIITM-Jay) |
|
|
102
102
|
| Graphics (p5.strands) | [@lukeplowden](https://github.com/lukeplowden) |
|
|
103
103
|
| Graphics (WebGL) | [@RandomGamingDev](https://github.com/RandomGamingDev), [@aferriss](https://github.com/aferriss), [@davepagurek](https://github.com/davepagurek), [@lukeplowden](https://github.com/lukeplowden), [@perminder-17](https://github.com/perminder-17) |
|
|
104
|
+
| i18n (es) | [@marioguzzzman](https://github.com/marioguzzzman) |
|
|
104
105
|
| i18n (hi) | [@Divyansh013](https://github.com/Divyansh013), [@takshittt](https://github.com/takshittt) |
|
|
105
106
|
| i18n (ko) | [@hana-cho](https://github.com/hana-cho) |
|
|
106
107
|
| i18n (zh) | [@limzykenneth](https://github.com/limzykenneth), [@lirenjie95](https://github.com/lirenjie95) |
|
|
@@ -1163,18 +1164,34 @@ We recognize all types of contributions. This project follows the [all-contribut
|
|
|
1163
1164
|
<tr>
|
|
1164
1165
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/shivasankaran18"><img src="https://avatars.githubusercontent.com/u/148421597?v=4?s=64" width="64px;" alt="Shiva"/><br /><sub><b>Shiva</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=shivasankaran18" title="Documentation">📖</a></td>
|
|
1165
1166
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/madhav2348"><img src="https://avatars.githubusercontent.com/u/161720210?v=4?s=64" width="64px;" alt="Madhav Majumdar"/><br /><sub><b>Madhav Majumdar</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=madhav2348" title="Code">💻</a></td>
|
|
1167
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/eslteacher902010"><img src="https://avatars.githubusercontent.com/u/210183195?v=4?s=64" width="64px;" alt="eslteacher902010"/><br /><sub><b>eslteacher902010</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=eslteacher902010" title="Code">💻</a></td>
|
|
1166
1168
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/nking07049925"><img src="https://avatars.githubusercontent.com/u/11886663?v=4?s=64" width="64px;" alt="Nikita Korol"/><br /><sub><b>Nikita Korol</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=nking07049925" title="Code">💻</a></td>
|
|
1167
1169
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/skools-here"><img src="https://avatars.githubusercontent.com/u/174816600?v=4?s=64" width="64px;" alt="skools-here"/><br /><sub><b>skools-here</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=skools-here" title="Code">💻</a></td>
|
|
1168
1170
|
<td align="center" valign="top" width="16.66%"><a href="https://leetcode.com/u/mudit_mah/"><img src="https://avatars.githubusercontent.com/u/140621191?v=4?s=64" width="64px;" alt="Mudit Maheshwari"/><br /><sub><b>Mudit Maheshwari</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=mudit06mah" title="Documentation">📖</a></td>
|
|
1169
|
-
<td align="center" valign="top" width="16.66%"><a href="http://acgillette.net"><img src="https://avatars.githubusercontent.com/u/18038450?v=4?s=64" width="64px;" alt="AC"/><br /><sub><b>AC</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=acgillette" title="Code">💻</a></td>
|
|
1170
1171
|
</tr>
|
|
1171
1172
|
<tr>
|
|
1173
|
+
<td align="center" valign="top" width="16.66%"><a href="http://acgillette.net"><img src="https://avatars.githubusercontent.com/u/18038450?v=4?s=64" width="64px;" alt="AC"/><br /><sub><b>AC</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=acgillette" title="Code">💻</a></td>
|
|
1172
1174
|
<td align="center" valign="top" width="16.66%"><a href="https://darrenshaw.org"><img src="https://avatars.githubusercontent.com/u/157414?v=4?s=64" width="64px;" alt="Darren Shaw"/><br /><sub><b>Darren Shaw</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=shawdm" title="Documentation">📖</a></td>
|
|
1173
1175
|
<td align="center" valign="top" width="16.66%"><a href="http://ericrabinowitz.com/"><img src="https://avatars.githubusercontent.com/u/3066943?v=4?s=64" width="64px;" alt="Eric Rabinowitz"/><br /><sub><b>Eric Rabinowitz</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=ericrav" title="Documentation">📖</a></td>
|
|
1174
1176
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/abuharish02"><img src="https://avatars.githubusercontent.com/u/111338069?v=4?s=64" width="64px;" alt="Abu Harish Faridi"/><br /><sub><b>Abu Harish Faridi</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=abuharish02" title="Documentation">📖</a></td>
|
|
1175
1177
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/vivekbopaliya"><img src="https://avatars.githubusercontent.com/u/122638553?v=4?s=64" width="64px;" alt="Vivek"/><br /><sub><b>Vivek</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=vivekbopaliya" title="Code">💻</a> <a href="#design-vivekbopaliya" title="Design">🎨</a> <a href="#userTesting-vivekbopaliya" title="User Testing">📓</a> <a href="#blog-vivekbopaliya" title="Blogposts">📝</a></td>
|
|
1176
1178
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Iron-56"><img src="https://avatars.githubusercontent.com/u/79905912?v=4?s=64" width="64px;" alt="Nandu Krishna"/><br /><sub><b>Nandu Krishna</b></sub></a><br /><a href="https://github.com/processing/p5.js/issues?q=author%3AIron-56" title="Bug reports">🐛</a> <a href="https://github.com/processing/p5.js/commits?author=Iron-56" title="Code">💻</a></td>
|
|
1179
|
+
</tr>
|
|
1180
|
+
<tr>
|
|
1177
1181
|
<td align="center" valign="top" width="16.66%"><a href="https://dorinetipo.vercel.app/"><img src="https://avatars.githubusercontent.com/u/105214329?v=4?s=64" width="64px;" alt="Dorine Tipo "/><br /><sub><b>Dorine Tipo </b></sub></a><br /><a href="#blog-MissTipo" title="Blogposts">📝</a> <a href="https://github.com/processing/p5.js/commits?author=MissTipo" title="Code">💻</a> <a href="#eventOrganizing-MissTipo" title="Event Organizing">📋</a> <a href="#research-MissTipo" title="Research">🔬</a> <a href="#promotion-MissTipo" title="Promotion">📣</a> <a href="#tutorial-MissTipo" title="Tutorials">✅</a></td>
|
|
1182
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/hana-cho"><img src="https://avatars.githubusercontent.com/u/51312538?v=4?s=64" width="64px;" alt="Hana Cho"/><br /><sub><b>Hana Cho</b></sub></a><br /><a href="#translation-hana-cho" title="Translation">🌍</a></td>
|
|
1183
|
+
<td align="center" valign="top" width="16.66%"><a href="https://kangjung.github.io/game/index.html"><img src="https://avatars.githubusercontent.com/u/28768760?v=4?s=64" width="64px;" alt="JUNGMIN KANG"/><br /><sub><b>JUNGMIN KANG</b></sub></a><br /><a href="#translation-kangjung" title="Translation">🌍</a></td>
|
|
1184
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/AlzaAlzaki76"><img src="https://avatars.githubusercontent.com/u/202525131?v=4?s=64" width="64px;" alt="Alza Alzaki"/><br /><sub><b>Alza Alzaki</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=AlzaAlzaki76" title="Documentation">📖</a></td>
|
|
1185
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Abhayaj247"><img src="https://avatars.githubusercontent.com/u/139991819?v=4?s=64" width="64px;" alt="Abhay M Joshi"/><br /><sub><b>Abhay M Joshi</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Abhayaj247" title="Documentation">📖</a></td>
|
|
1186
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Homaid"><img src="https://avatars.githubusercontent.com/u/69979731?v=4?s=64" width="64px;" alt="Homaid"/><br /><sub><b>Homaid</b></sub></a><br /><a href="#a11y-Homaid" title="Accessibility">️️️️♿️</a> <a href="https://github.com/processing/p5.js/commits?author=Homaid" title="Code">💻</a></td>
|
|
1187
|
+
</tr>
|
|
1188
|
+
<tr>
|
|
1189
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/junseok44"><img src="https://avatars.githubusercontent.com/u/81099627?v=4?s=64" width="64px;" alt="JangJunseok"/><br /><sub><b>JangJunseok</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=junseok44" title="Code">💻</a></td>
|
|
1190
|
+
<td align="center" valign="top" width="16.66%"><a href="http://charlotte.fyi"><img src="https://avatars.githubusercontent.com/u/10366310?v=4?s=64" width="64px;" alt="charlotte 🌸"/><br /><sub><b>charlotte 🌸</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=tychedelia" title="Code">💻</a></td>
|
|
1191
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/reshma045"><img src="https://avatars.githubusercontent.com/u/77575603?v=4?s=64" width="64px;" alt="Reshma R"/><br /><sub><b>Reshma R</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=reshma045" title="Code">💻</a></td>
|
|
1192
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Somnath-Mishra"><img src="https://avatars.githubusercontent.com/u/120735604?v=4?s=64" width="64px;" alt="Somnath Mishra"/><br /><sub><b>Somnath Mishra</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Somnath-Mishra" title="Code">💻</a></td>
|
|
1193
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/ayushman1210"><img src="https://avatars.githubusercontent.com/u/138183570?v=4?s=64" width="64px;" alt="Ayushman"/><br /><sub><b>Ayushman</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=ayushman1210" title="Code">💻</a></td>
|
|
1194
|
+
<td align="center" valign="top" width="16.66%"><a href="https://mannu.live"><img src="https://avatars.githubusercontent.com/u/117009138?v=4?s=64" width="64px;" alt="Manpreet Singh"/><br /><sub><b>Manpreet Singh</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=MannuVilasara" title="Code">💻</a></td>
|
|
1178
1195
|
</tr>
|
|
1179
1196
|
</tbody>
|
|
1180
1197
|
</table>
|
package/lib/addons/p5.sound.js
CHANGED
|
@@ -10979,7 +10979,7 @@ function gain_createClass(Constructor, protoProps, staticProps) { if (protoProps
|
|
|
10979
10979
|
* @example
|
|
10980
10980
|
* <div><code>
|
|
10981
10981
|
*
|
|
10982
|
-
* // load two soundfile and crossfade
|
|
10982
|
+
* // load two soundfile and crossfade between them
|
|
10983
10983
|
* let sound1,sound2;
|
|
10984
10984
|
* let sound1Gain, sound2Gain, mixGain;
|
|
10985
10985
|
* function preload(){
|
package/lib/p5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! p5.js v1.11.
|
|
1
|
+
/*! p5.js v1.11.11 October 20, 2025 */
|
|
2
2
|
(function (f) {
|
|
3
3
|
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
|
4
4
|
module.exports = f()
|
|
@@ -2842,7 +2842,7 @@
|
|
|
2842
2842
|
{
|
|
2843
2843
|
'name': 'event',
|
|
2844
2844
|
'description': '<p>optional resize Event.</p>\n',
|
|
2845
|
-
'type': '
|
|
2845
|
+
'type': 'Event',
|
|
2846
2846
|
'optional': true
|
|
2847
2847
|
}
|
|
2848
2848
|
],
|
|
@@ -53305,7 +53305,15 @@
|
|
|
53305
53305
|
//updates gridOutput
|
|
53306
53306
|
|
|
53307
53307
|
_main.default.prototype._updateGridOutput = function (idT) {
|
|
53308
|
-
//if
|
|
53308
|
+
// Check if the current rendering mode is WEBGL
|
|
53309
|
+
if (this._renderer && this._renderer instanceof _main.default.RendererGL) {
|
|
53310
|
+
if (!this._didOutputGridWebGLMessage) {
|
|
53311
|
+
this._didOutputGridWebGLMessage = true;
|
|
53312
|
+
console.error('gridOutput() does not yet work in WebGL mode.');
|
|
53313
|
+
}
|
|
53314
|
+
return;
|
|
53315
|
+
} //if html structure is not there yet
|
|
53316
|
+
|
|
53309
53317
|
if (!this.dummyDOM.querySelector('#'.concat(idT, '_summary'))) {
|
|
53310
53318
|
return;
|
|
53311
53319
|
}
|
|
@@ -53520,6 +53528,15 @@
|
|
|
53520
53528
|
* <a href="https://p5js.org/tutorials/writing-accessible-canvas-descriptions/">Writing accessible canvas descriptions</a>
|
|
53521
53529
|
* to learn more about making sketches accessible.
|
|
53522
53530
|
*
|
|
53531
|
+
* `textOutput()` generates descriptions in English only. Text drawn with
|
|
53532
|
+
* <a href="#/p5/text">text()</a> is not described. Shapes created with
|
|
53533
|
+
* <a href="#/p5/beginShape">beginShape()</a> are not described. WEBGL mode
|
|
53534
|
+
* and 3D shapes are not supported.
|
|
53535
|
+
*
|
|
53536
|
+
* Use <a href="#/p5/describe">describe()</a> and
|
|
53537
|
+
* <a href="#/p5/describeElement">describeElement()</a> for more control
|
|
53538
|
+
* over canvas descriptions.
|
|
53539
|
+
*
|
|
53523
53540
|
* @method textOutput
|
|
53524
53541
|
* @param {Constant} [display] either FALLBACK or LABEL.
|
|
53525
53542
|
*
|
|
@@ -53565,6 +53582,10 @@
|
|
|
53565
53582
|
*
|
|
53566
53583
|
* <div>
|
|
53567
53584
|
* <code>
|
|
53585
|
+
* function setup() {
|
|
53586
|
+
* createCanvas(100, 100);
|
|
53587
|
+
* }
|
|
53588
|
+
*
|
|
53568
53589
|
* function draw() {
|
|
53569
53590
|
* // Add the text description.
|
|
53570
53591
|
* textOutput();
|
|
@@ -53585,6 +53606,10 @@
|
|
|
53585
53606
|
*
|
|
53586
53607
|
* <div>
|
|
53587
53608
|
* <code>
|
|
53609
|
+
* function setup() {
|
|
53610
|
+
* createCanvas(100, 100);
|
|
53611
|
+
* }
|
|
53612
|
+
*
|
|
53588
53613
|
* function draw() {
|
|
53589
53614
|
* // Add the text description and
|
|
53590
53615
|
* // display it for debugging.
|
|
@@ -53654,6 +53679,15 @@
|
|
|
53654
53679
|
* <a href="https://p5js.org/tutorials/writing-accessible-canvas-descriptions/">Writing accessible canvas descriptions</a>
|
|
53655
53680
|
* to learn more about making sketches accessible.
|
|
53656
53681
|
*
|
|
53682
|
+
* `gridOutput()` generates descriptions in English only. Text drawn with
|
|
53683
|
+
* <a href="#/p5/text">text()</a> is not described. Shapes created with
|
|
53684
|
+
* <a href="#/p5/beginShape">beginShape()</a> are not described. WEBGL mode
|
|
53685
|
+
* and 3D shapes are not supported.
|
|
53686
|
+
*
|
|
53687
|
+
* Use <a href="#/p5/describe">describe()</a> and
|
|
53688
|
+
* <a href="#/p5/describeElement">describeElement()</a> for more control
|
|
53689
|
+
* over canvas descriptions.
|
|
53690
|
+
*
|
|
53657
53691
|
* @method gridOutput
|
|
53658
53692
|
* @param {Constant} [display] either FALLBACK or LABEL.
|
|
53659
53693
|
*
|
|
@@ -53699,6 +53733,10 @@
|
|
|
53699
53733
|
*
|
|
53700
53734
|
* <div>
|
|
53701
53735
|
* <code>
|
|
53736
|
+
* function setup() {
|
|
53737
|
+
* createCanvas(100, 100);
|
|
53738
|
+
* }
|
|
53739
|
+
*
|
|
53702
53740
|
* function draw() {
|
|
53703
53741
|
* // Add the grid description.
|
|
53704
53742
|
* gridOutput();
|
|
@@ -53719,6 +53757,10 @@
|
|
|
53719
53757
|
*
|
|
53720
53758
|
* <div>
|
|
53721
53759
|
* <code>
|
|
53760
|
+
* function setup() {
|
|
53761
|
+
* createCanvas(100, 100);
|
|
53762
|
+
* }
|
|
53763
|
+
*
|
|
53722
53764
|
* function draw() {
|
|
53723
53765
|
* // Add the grid description and
|
|
53724
53766
|
* // display it for debugging.
|
|
@@ -53959,7 +54001,7 @@
|
|
|
53959
54001
|
include
|
|
53960
54002
|
];
|
|
53961
54003
|
//if other shapes of this type have been created
|
|
53962
|
-
} else
|
|
54004
|
+
} else {
|
|
53963
54005
|
//for every shape of this type
|
|
53964
54006
|
for (var y in this.ingredients.shapes[f]) {
|
|
53965
54007
|
//compare it with current shape and if it already exists make add false
|
|
@@ -54156,7 +54198,15 @@
|
|
|
54156
54198
|
//updates textOutput
|
|
54157
54199
|
|
|
54158
54200
|
_main.default.prototype._updateTextOutput = function (idT) {
|
|
54159
|
-
//if
|
|
54201
|
+
// Check if the current rendering mode is WEBGL
|
|
54202
|
+
if (this._renderer && this._renderer instanceof _main.default.RendererGL) {
|
|
54203
|
+
if (!this._didOutputTextWebGLMessage) {
|
|
54204
|
+
this._didOutputTextWebGLMessage = true;
|
|
54205
|
+
console.error('textOutput() does not yet work in WebGL mode.');
|
|
54206
|
+
}
|
|
54207
|
+
return;
|
|
54208
|
+
} //if html structure is not there yet
|
|
54209
|
+
|
|
54160
54210
|
if (!this.dummyDOM.querySelector('#'.concat(idT, '_summary'))) {
|
|
54161
54211
|
return;
|
|
54162
54212
|
}
|
|
@@ -58022,6 +58072,11 @@
|
|
|
58022
58072
|
* in RGB values. Calling `background(255, 204, 0)` sets the background a bright
|
|
58023
58073
|
* yellow color.
|
|
58024
58074
|
*
|
|
58075
|
+
* The version of `background()` with four parameters interprets them as RGBA,
|
|
58076
|
+
* HSBA, or HSLA colors, depending on the current
|
|
58077
|
+
* <a href="#/p5/colorMode">colorMode()</a>. The last parameter sets the alpha
|
|
58078
|
+
* (transparency) value.
|
|
58079
|
+
*
|
|
58025
58080
|
* @method background
|
|
58026
58081
|
* @param {p5.Color} color any value created by the <a href="#/p5/color">color()</a> function
|
|
58027
58082
|
* @chainable
|
|
@@ -58070,6 +58125,19 @@
|
|
|
58070
58125
|
* function setup() {
|
|
58071
58126
|
* createCanvas(100, 100);
|
|
58072
58127
|
*
|
|
58128
|
+
* // R, G, B, and Alpha values.
|
|
58129
|
+
* background(255, 0, 0, 128);
|
|
58130
|
+
*
|
|
58131
|
+
* describe('A canvas with a semi-transparent red background.');
|
|
58132
|
+
* }
|
|
58133
|
+
* </code>
|
|
58134
|
+
* </div>
|
|
58135
|
+
*
|
|
58136
|
+
* <div>
|
|
58137
|
+
* <code>
|
|
58138
|
+
* function setup() {
|
|
58139
|
+
* createCanvas(100, 100);
|
|
58140
|
+
*
|
|
58073
58141
|
* // Use HSB color.
|
|
58074
58142
|
* colorMode(HSB);
|
|
58075
58143
|
*
|
|
@@ -58564,6 +58632,10 @@
|
|
|
58564
58632
|
* <a href="#/p5/colorMode">colorMode()</a>. The default color space is RGB,
|
|
58565
58633
|
* with each value in the range from 0 to 255.
|
|
58566
58634
|
*
|
|
58635
|
+
* The version of `fill()` with four parameters interprets them as `RGBA`, `HSBA`,
|
|
58636
|
+
* or `HSLA` colors, depending on the current <a href="#/p5/colorMode">colorMode()</a>. The last parameter
|
|
58637
|
+
* sets the alpha (transparency) value.
|
|
58638
|
+
*
|
|
58567
58639
|
* @method fill
|
|
58568
58640
|
* @param {Number} v1 red value if color mode is RGB or hue value if color mode is HSB.
|
|
58569
58641
|
* @param {Number} v2 green value if color mode is RGB or saturation value if color mode is HSB.
|
|
@@ -58608,6 +58680,22 @@
|
|
|
58608
58680
|
* function setup() {
|
|
58609
58681
|
* createCanvas(100, 100);
|
|
58610
58682
|
*
|
|
58683
|
+
* background(200);
|
|
58684
|
+
*
|
|
58685
|
+
* // R, G, B, and Alpha values.
|
|
58686
|
+
* fill(255, 0, 0, 128);
|
|
58687
|
+
* square(20, 20, 60);
|
|
58688
|
+
*
|
|
58689
|
+
* describe('A semi-transparent red square with a black outline.');
|
|
58690
|
+
* }
|
|
58691
|
+
* </code>
|
|
58692
|
+
* </div>
|
|
58693
|
+
*
|
|
58694
|
+
* <div>
|
|
58695
|
+
* <code>
|
|
58696
|
+
* function setup() {
|
|
58697
|
+
* createCanvas(100, 100);
|
|
58698
|
+
*
|
|
58611
58699
|
* background(100);
|
|
58612
58700
|
*
|
|
58613
58701
|
* // Use HSB color.
|
|
@@ -58898,7 +58986,7 @@
|
|
|
58898
58986
|
* Sets the color used to draw points, lines, and the outlines of shapes.
|
|
58899
58987
|
*
|
|
58900
58988
|
* Calling `stroke(255, 165, 0)` or `stroke('orange')` means all shapes drawn
|
|
58901
|
-
* after calling `stroke()` will be
|
|
58989
|
+
* after calling `stroke()` will be outlined with the color orange. The way
|
|
58902
58990
|
* these parameters are interpreted may be changed with the
|
|
58903
58991
|
* <a href="#/p5/colorMode">colorMode()</a> function.
|
|
58904
58992
|
*
|
|
@@ -59309,7 +59397,7 @@
|
|
|
59309
59397
|
* @property {String} VERSION
|
|
59310
59398
|
* @final
|
|
59311
59399
|
*/
|
|
59312
|
-
var VERSION = '1.11.
|
|
59400
|
+
var VERSION = '1.11.11';
|
|
59313
59401
|
// GRAPHICS RENDERER
|
|
59314
59402
|
/**
|
|
59315
59403
|
* The default, two-dimensional renderer.
|
|
@@ -61421,7 +61509,7 @@
|
|
|
61421
61509
|
* can be used for debugging or other purposes.
|
|
61422
61510
|
*
|
|
61423
61511
|
* @method windowResized
|
|
61424
|
-
* @param {
|
|
61512
|
+
* @param {Event} [event] optional resize Event.
|
|
61425
61513
|
* @example
|
|
61426
61514
|
* <div class="norender">
|
|
61427
61515
|
* <code>
|
|
@@ -63803,7 +63891,7 @@
|
|
|
63803
63891
|
var fesCodeReader = function fesCodeReader() {
|
|
63804
63892
|
//moveAhead will determine if a match is found outside
|
|
63805
63893
|
//the setup and draw function. If a match is found then
|
|
63806
|
-
//to prevent further potential reporting we will exit
|
|
63894
|
+
//to prevent further potential reporting we will exit immediately
|
|
63807
63895
|
var moveAhead = globalConstFuncCheck();
|
|
63808
63896
|
if (moveAhead) return;
|
|
63809
63897
|
var code = '';
|
|
@@ -63959,7 +64047,7 @@
|
|
|
63959
64047
|
line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
|
|
63960
64048
|
}
|
|
63961
64049
|
var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(');
|
|
63962
|
-
// capture and
|
|
64050
|
+
// capture and preserve the parenthesized location "(/foo/my bar.js:12:87)" in
|
|
63963
64051
|
// case it has spaces in it, as the string is split on \s+ later on
|
|
63964
64052
|
var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/);
|
|
63965
64053
|
// remove the parenthesized location from the line, if it was matched
|
|
@@ -65363,6 +65451,7 @@
|
|
|
65363
65451
|
_dereq_('core-js/modules/es.regexp.exec');
|
|
65364
65452
|
_dereq_('core-js/modules/es.string.includes');
|
|
65365
65453
|
_dereq_('core-js/modules/es.string.iterator');
|
|
65454
|
+
_dereq_('core-js/modules/es.string.replace');
|
|
65366
65455
|
_dereq_('core-js/modules/es.string.split');
|
|
65367
65456
|
_dereq_('core-js/modules/web.dom-collections.iterator');
|
|
65368
65457
|
_dereq_('core-js/modules/es.array.includes');
|
|
@@ -65375,6 +65464,7 @@
|
|
|
65375
65464
|
_dereq_('core-js/modules/es.regexp.exec');
|
|
65376
65465
|
_dereq_('core-js/modules/es.string.includes');
|
|
65377
65466
|
_dereq_('core-js/modules/es.string.iterator');
|
|
65467
|
+
_dereq_('core-js/modules/es.string.replace');
|
|
65378
65468
|
_dereq_('core-js/modules/es.string.split');
|
|
65379
65469
|
_dereq_('core-js/modules/web.dom-collections.iterator');
|
|
65380
65470
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -65383,6 +65473,7 @@
|
|
|
65383
65473
|
exports.setTranslatorLanguage = exports.currentTranslatorLanguage = exports.availableTranslatorLanguages = exports.initialize = exports.translator = void 0;
|
|
65384
65474
|
var _i18next = _interopRequireDefault(_dereq_('i18next'));
|
|
65385
65475
|
var _i18nextBrowserLanguagedetector = _interopRequireDefault(_dereq_('i18next-browser-languagedetector'));
|
|
65476
|
+
var _constants = _dereq_('./constants');
|
|
65386
65477
|
function _interopRequireDefault(obj) {
|
|
65387
65478
|
return obj && obj.__esModule ? obj : {
|
|
65388
65479
|
default:
|
|
@@ -65562,7 +65653,9 @@
|
|
|
65562
65653
|
},
|
|
65563
65654
|
backend: {
|
|
65564
65655
|
fallback: 'en',
|
|
65565
|
-
|
|
65656
|
+
// ensure that the FES internationalization strings are loaded
|
|
65657
|
+
// from the latest patch of the current minor version of p5.js
|
|
65658
|
+
loadPath: 'https://cdn.jsdelivr.net/npm/p5@'.concat(_constants.VERSION.replace(/^(\d+\.\d+)\.\d+.*$/, '$1'), '/translations/{{lng}}/{{ns}}.json')
|
|
65566
65659
|
},
|
|
65567
65660
|
partialBundledLanguages: true,
|
|
65568
65661
|
resources: fallbackResources
|
|
@@ -65606,6 +65699,7 @@
|
|
|
65606
65699
|
{
|
|
65607
65700
|
'../../translations': 369,
|
|
65608
65701
|
'../../translations/dev': undefined,
|
|
65702
|
+
'./constants': 294,
|
|
65609
65703
|
'core-js/modules/es.array.includes': 181,
|
|
65610
65704
|
'core-js/modules/es.array.iterator': 183,
|
|
65611
65705
|
'core-js/modules/es.array.join': 184,
|
|
@@ -65616,6 +65710,7 @@
|
|
|
65616
65710
|
'core-js/modules/es.regexp.exec': 213,
|
|
65617
65711
|
'core-js/modules/es.string.includes': 217,
|
|
65618
65712
|
'core-js/modules/es.string.iterator': 218,
|
|
65713
|
+
'core-js/modules/es.string.replace': 222,
|
|
65619
65714
|
'core-js/modules/es.string.split': 224,
|
|
65620
65715
|
'core-js/modules/web.dom-collections.iterator': 264,
|
|
65621
65716
|
'i18next': 275,
|
|
@@ -72679,8 +72774,7 @@
|
|
|
72679
72774
|
* The fifth and sixth parameters, `start` and `stop`, set the angles
|
|
72680
72775
|
* between which to draw the arc. Arcs are always drawn clockwise from
|
|
72681
72776
|
* `start` to `stop`. The fifth and sixth parameters, start and stop, set the
|
|
72682
|
-
* angles between which to draw the arc.
|
|
72683
|
-
* start to stop. By default, angles are given in radians, but if angleMode
|
|
72777
|
+
* angles between which to draw the arc. By default, angles are given in radians, but if angleMode
|
|
72684
72778
|
* (DEGREES) is set, the function interprets the values in degrees.
|
|
72685
72779
|
*
|
|
72686
72780
|
* The seventh parameter, `mode`, is optional. It determines the arc's fill
|
|
@@ -77290,7 +77384,7 @@
|
|
|
77290
77384
|
return this;
|
|
77291
77385
|
};
|
|
77292
77386
|
/**
|
|
77293
|
-
*
|
|
77387
|
+
* Stops adding vertices to a custom shape.
|
|
77294
77388
|
*
|
|
77295
77389
|
* The <a href="#/p5/beginShape">beginShape()</a> and `endShape()` functions
|
|
77296
77390
|
* allow for creating custom shapes in 2D or 3D.
|
|
@@ -77365,6 +77459,37 @@
|
|
|
77365
77459
|
*
|
|
77366
77460
|
* <div>
|
|
77367
77461
|
* <code>
|
|
77462
|
+
* function setup() {
|
|
77463
|
+
* createCanvas(200, 100);
|
|
77464
|
+
*
|
|
77465
|
+
* background(240);
|
|
77466
|
+
*
|
|
77467
|
+
* noFill();
|
|
77468
|
+
* stroke(0);
|
|
77469
|
+
*
|
|
77470
|
+
* // Open shape (left)
|
|
77471
|
+
* beginShape();
|
|
77472
|
+
* vertex(20, 20);
|
|
77473
|
+
* vertex(80, 20);
|
|
77474
|
+
* vertex(80, 80);
|
|
77475
|
+
* endShape(); // Not closed
|
|
77476
|
+
*
|
|
77477
|
+
* // Closed shape (right)
|
|
77478
|
+
* beginShape();
|
|
77479
|
+
* vertex(120, 20);
|
|
77480
|
+
* vertex(180, 20);
|
|
77481
|
+
* vertex(180, 80);
|
|
77482
|
+
* endShape(CLOSE); // Closed
|
|
77483
|
+
*
|
|
77484
|
+
* describe(
|
|
77485
|
+
* 'Two right-angled shapes on a light gray background. The left shape is open with three lines. The right shape is closed, forming a triangle.'
|
|
77486
|
+
* );
|
|
77487
|
+
* }
|
|
77488
|
+
* </code>
|
|
77489
|
+
* </div>
|
|
77490
|
+
*
|
|
77491
|
+
* <div>
|
|
77492
|
+
* <code>
|
|
77368
77493
|
* // Note: A "uniform" is a global variable within a shader program.
|
|
77369
77494
|
*
|
|
77370
77495
|
* // Create a string with the vertex shader program.
|
|
@@ -80628,7 +80753,7 @@
|
|
|
80628
80753
|
* function draw() {
|
|
80629
80754
|
* background(200);
|
|
80630
80755
|
*
|
|
80631
|
-
* // Shear the coordinate system along the
|
|
80756
|
+
* // Shear the coordinate system along the y-axis.
|
|
80632
80757
|
* shearY(QUARTER_PI);
|
|
80633
80758
|
*
|
|
80634
80759
|
* // Draw the square.
|
|
@@ -80651,7 +80776,7 @@
|
|
|
80651
80776
|
* function draw() {
|
|
80652
80777
|
* background(200);
|
|
80653
80778
|
*
|
|
80654
|
-
* // Shear the coordinate system along the
|
|
80779
|
+
* // Shear the coordinate system along the y-axis.
|
|
80655
80780
|
* shearY(45);
|
|
80656
80781
|
*
|
|
80657
80782
|
* // Draw the square.
|
|
@@ -114198,7 +114323,7 @@
|
|
|
114198
114323
|
var xoff = 0;
|
|
114199
114324
|
x = xOriginal;
|
|
114200
114325
|
var line = lines[i];
|
|
114201
|
-
line = line.replace(
|
|
114326
|
+
line = line.replace(/\t/g, ' ');
|
|
114202
114327
|
var glyphs = this._getGlyphs(line);
|
|
114203
114328
|
for (var j = 0; j < glyphs.length; j++) {
|
|
114204
114329
|
if (!isSpace(j, line, glyphs)) {
|