p5 2.2.1-rc.0 → 2.2.1

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.
Files changed (117) hide show
  1. package/dist/accessibility/color_namer.js +5 -6
  2. package/dist/accessibility/describe.js +4 -26
  3. package/dist/accessibility/index.js +5 -6
  4. package/dist/accessibility/outputs.js +6 -38
  5. package/dist/app.js +5 -6
  6. package/dist/color/color_conversion.js +5 -6
  7. package/dist/color/creating_reading.js +1 -1
  8. package/dist/color/index.js +2 -2
  9. package/dist/color/p5.Color.js +1 -1
  10. package/dist/color/setting.js +59 -357
  11. package/dist/{constants-DEJVKr9Z.js → constants-DQyACdzq.js} +11 -61
  12. package/dist/core/constants.js +1 -1
  13. package/dist/core/environment.js +26 -158
  14. package/dist/core/filterShaders.js +1 -1
  15. package/dist/core/friendly_errors/fes_core.js +1 -1
  16. package/dist/core/friendly_errors/file_errors.js +1 -1
  17. package/dist/core/friendly_errors/index.js +1 -1
  18. package/dist/core/friendly_errors/param_validator.js +1 -1
  19. package/dist/core/friendly_errors/sketch_verifier.js +1 -1
  20. package/dist/core/helpers.js +1 -1
  21. package/dist/core/init.js +5 -6
  22. package/dist/core/internationalization.js +1 -1
  23. package/dist/core/legacy.js +5 -6
  24. package/dist/core/main.js +5 -6
  25. package/dist/core/p5.Graphics.js +4 -5
  26. package/dist/core/p5.Renderer.js +3 -4
  27. package/dist/core/p5.Renderer2D.js +5 -6
  28. package/dist/core/p5.Renderer3D.js +4 -5
  29. package/dist/core/rendering.js +4 -5
  30. package/dist/core/structure.js +13 -52
  31. package/dist/core/transform.js +32 -176
  32. package/dist/{creating_reading-CgHCHxqN.js → creating_reading-ZXzcZEsb.js} +3 -196
  33. package/dist/data/local_storage.js +4 -30
  34. package/dist/dom/dom.js +24 -159
  35. package/dist/dom/index.js +2 -2
  36. package/dist/dom/p5.Element.js +31 -208
  37. package/dist/dom/p5.File.js +1 -32
  38. package/dist/dom/p5.MediaElement.js +10 -113
  39. package/dist/events/acceleration.js +11 -64
  40. package/dist/events/keyboard.js +13 -81
  41. package/dist/events/pointer.js +18 -160
  42. package/dist/image/const.js +1 -1
  43. package/dist/image/filterRenderer2D.js +4 -5
  44. package/dist/image/image.js +4 -5
  45. package/dist/image/index.js +4 -5
  46. package/dist/image/loading_displaying.js +4 -5
  47. package/dist/image/p5.Image.js +3 -4
  48. package/dist/image/pixels.js +17 -100
  49. package/dist/io/files.js +4 -5
  50. package/dist/io/index.js +4 -5
  51. package/dist/io/p5.Table.js +66 -158
  52. package/dist/io/p5.TableRow.js +48 -71
  53. package/dist/io/p5.XML.js +6 -99
  54. package/dist/io/utilities.js +8 -3
  55. package/dist/{main-_RXV5Lx8.js → main-DvN69W3f.js} +13 -42
  56. package/dist/math/Matrices/Matrix.js +87 -126
  57. package/dist/math/Matrices/MatrixNumjs.js +1 -5
  58. package/dist/math/calculation.js +10 -112
  59. package/dist/math/index.js +1 -1
  60. package/dist/math/math.js +2 -12
  61. package/dist/math/noise.js +5 -32
  62. package/dist/math/p5.Matrix.js +3 -3
  63. package/dist/math/p5.Vector.js +104 -345
  64. package/dist/math/random.js +5 -32
  65. package/dist/math/trigonometry.js +15 -105
  66. package/dist/{p5.Renderer-QoFcvj3f.js → p5.Renderer-D-5LdCRz.js} +25 -178
  67. package/dist/{rendering-CsICjEXA.js → rendering-h9unX5K0.js} +254 -1156
  68. package/dist/shape/2d_primitives.js +33 -194
  69. package/dist/shape/attributes.js +12 -73
  70. package/dist/shape/curves.js +30 -95
  71. package/dist/shape/custom_shapes.js +63 -144
  72. package/dist/shape/index.js +2 -2
  73. package/dist/shape/vertex.js +21 -106
  74. package/dist/strands/p5.strands.js +248 -46
  75. package/dist/type/index.js +3 -4
  76. package/dist/type/p5.Font.js +4 -49
  77. package/dist/type/textCore.js +5 -158
  78. package/dist/utilities/conversion.js +17 -104
  79. package/dist/utilities/time_date.js +3 -40
  80. package/dist/utilities/utility_functions.js +6 -48
  81. package/dist/webgl/3d_primitives.js +4 -5
  82. package/dist/webgl/GeometryBuilder.js +1 -2
  83. package/dist/webgl/ShapeBuilder.js +22 -2
  84. package/dist/webgl/enums.js +1 -1
  85. package/dist/webgl/index.js +4 -5
  86. package/dist/webgl/interaction.js +6 -33
  87. package/dist/webgl/light.js +4 -5
  88. package/dist/webgl/loading.js +12 -46
  89. package/dist/webgl/material.js +4 -5
  90. package/dist/webgl/p5.Camera.js +4 -5
  91. package/dist/webgl/p5.DataArray.js +0 -4
  92. package/dist/webgl/p5.Framebuffer.js +4 -5
  93. package/dist/webgl/p5.Geometry.js +12 -106
  94. package/dist/webgl/p5.Quat.js +1 -1
  95. package/dist/webgl/p5.RendererGL.js +7 -18
  96. package/dist/webgl/p5.Shader.js +12 -36
  97. package/dist/webgl/p5.Texture.js +4 -5
  98. package/dist/webgl/text.js +4 -5
  99. package/dist/webgl/utils.js +4 -5
  100. package/dist/webgpu/index.js +1 -1
  101. package/dist/webgpu/p5.RendererWebGPU.js +529 -208
  102. package/dist/webgpu/shaders/color.js +32 -17
  103. package/dist/webgpu/shaders/filters/base.js +18 -7
  104. package/dist/webgpu/shaders/font.js +52 -40
  105. package/dist/webgpu/shaders/line.js +50 -36
  106. package/dist/webgpu/shaders/material.js +90 -83
  107. package/dist/webgpu/strands_wgslBackend.js +5 -2
  108. package/lib/p5.esm.js +5576 -7811
  109. package/lib/p5.esm.min.js +1 -1
  110. package/lib/p5.js +5576 -7811
  111. package/lib/p5.min.js +1 -1
  112. package/lib/p5.webgpu.esm.js +786 -453
  113. package/lib/p5.webgpu.js +786 -453
  114. package/lib/p5.webgpu.min.js +1 -1
  115. package/package.json +13 -13
  116. package/types/global.d.ts +16905 -16783
  117. package/types/p5.d.ts +11142 -11081
@@ -41,8 +41,6 @@ function pointer(p5, fn, lifecycles){
41
41
  * @readOnly
42
42
  *
43
43
  * @example
44
- * <div>
45
- * <code>
46
44
  * function setup() {
47
45
  * createCanvas(100, 100);
48
46
  *
@@ -66,8 +64,6 @@ function pointer(p5, fn, lifecycles){
66
64
  * text('<<', 50, 50);
67
65
  * }
68
66
  * }
69
- * </code>
70
- * </div>
71
67
  */
72
68
  fn.movedX = 0;
73
69
 
@@ -86,8 +82,6 @@ function pointer(p5, fn, lifecycles){
86
82
  * @readOnly
87
83
  *
88
84
  * @example
89
- * <div>
90
- * <code>
91
85
  * function setup() {
92
86
  * createCanvas(100, 100);
93
87
  *
@@ -111,8 +105,6 @@ function pointer(p5, fn, lifecycles){
111
105
  * text('▲', 50, 50);
112
106
  * }
113
107
  * }
114
- * </code>
115
- * </div>
116
108
  */
117
109
  fn.movedY = 0;
118
110
 
@@ -138,8 +130,6 @@ function pointer(p5, fn, lifecycles){
138
130
  * @readOnly
139
131
  *
140
132
  * @example
141
- * <div>
142
- * <code>
143
133
  * function setup() {
144
134
  * createCanvas(100, 100);
145
135
  *
@@ -152,11 +142,8 @@ function pointer(p5, fn, lifecycles){
152
142
  * // Draw a vertical line that follows the mouse's x-coordinate.
153
143
  * line(mouseX, 0, mouseX, 100);
154
144
  * }
155
- * </code>
156
- * </div>
157
145
  *
158
- * <div>
159
- * <code>
146
+ * @example
160
147
  * function setup() {
161
148
  * createCanvas(100, 100);
162
149
  *
@@ -173,11 +160,8 @@ function pointer(p5, fn, lifecycles){
173
160
  * // Display the mouse's coordinates.
174
161
  * text(`x: ${int(mouseX)} y: ${int(mouseY)}`, 50, 50);
175
162
  * }
176
- * </code>
177
- * </div>
178
163
  *
179
- * <div>
180
- * <code>
164
+ * @example
181
165
  * function setup() {
182
166
  * createCanvas(100, 100, WEBGL);
183
167
  *
@@ -194,11 +178,8 @@ function pointer(p5, fn, lifecycles){
194
178
  * // Draw the line.
195
179
  * line(mx, -50, mx, 50);
196
180
  * }
197
- * </code>
198
- * </div>
199
181
  *
200
- * <div>
201
- * <code>
182
+ * @example
202
183
  * let font;
203
184
  *
204
185
  * async function setup() {
@@ -224,8 +205,6 @@ function pointer(p5, fn, lifecycles){
224
205
  * // Display the mouse's coordinates.
225
206
  * text(`x: ${int(mouseX)} y: ${int(mouseY)}`, 0, 0);
226
207
  * }
227
- * </code>
228
- * </div>
229
208
  */
230
209
  fn.mouseX = 0;
231
210
 
@@ -243,8 +222,6 @@ function pointer(p5, fn, lifecycles){
243
222
  * @readOnly
244
223
  *
245
224
  * @example
246
- * <div>
247
- * <code>
248
225
  * function setup() {
249
226
  * createCanvas(100, 100);
250
227
  *
@@ -257,11 +234,8 @@ function pointer(p5, fn, lifecycles){
257
234
  * // Draw a horizontal line that follows the mouse's y-coordinate.
258
235
  * line(0, mouseY, 100, mouseY);
259
236
  * }
260
- * </code>
261
- * </div>
262
237
  *
263
- * <div>
264
- * <code>
238
+ * @example
265
239
  * function setup() {
266
240
  * createCanvas(100, 100);
267
241
  *
@@ -278,11 +252,8 @@ function pointer(p5, fn, lifecycles){
278
252
  * // Display the mouse's coordinates.
279
253
  * text(`x: ${int(mouseX)} y: ${int(mouseY)}`, 50, 50);
280
254
  * }
281
- * </code>
282
- * </div>
283
255
  *
284
- * <div>
285
- * <code>
256
+ * @example
286
257
  * function setup() {
287
258
  * createCanvas(100, 100, WEBGL);
288
259
  *
@@ -299,11 +270,8 @@ function pointer(p5, fn, lifecycles){
299
270
  * // Draw the line.
300
271
  * line(-50, my, 50, my);
301
272
  * }
302
- * </code>
303
- * </div>
304
273
  *
305
- * <div>
306
- * <code>
274
+ * @example
307
275
  * let font;
308
276
  *
309
277
  * async function setup() {
@@ -329,8 +297,6 @@ function pointer(p5, fn, lifecycles){
329
297
  * // Display the mouse's coordinates.
330
298
  * text(`x: ${int(mouseX)} y: ${int(mouseY)}`, 0, 0);
331
299
  * }
332
- * </code>
333
- * </div>
334
300
  */
335
301
  fn.mouseY = 0;
336
302
 
@@ -354,8 +320,6 @@ function pointer(p5, fn, lifecycles){
354
320
  * @readOnly
355
321
  *
356
322
  * @example
357
- * <div>
358
- * <code>
359
323
  * function setup() {
360
324
  * createCanvas(100, 100);
361
325
  *
@@ -370,11 +334,8 @@ function pointer(p5, fn, lifecycles){
370
334
  *
371
335
  * line(pmouseX, pmouseY, mouseX, mouseY);
372
336
  * }
373
- * </code>
374
- * </div>
375
337
  *
376
- * <div>
377
- * <code>
338
+ * @example
378
339
  * function setup() {
379
340
  * createCanvas(100, 100, WEBGL);
380
341
  *
@@ -394,8 +355,6 @@ function pointer(p5, fn, lifecycles){
394
355
  * // Draw the line.
395
356
  * line(pmx, pmy, mx, my);
396
357
  * }
397
- * </code>
398
- * </div>
399
358
  */
400
359
  fn.pmouseX = 0;
401
360
 
@@ -419,8 +378,6 @@ function pointer(p5, fn, lifecycles){
419
378
  * @readOnly
420
379
  *
421
380
  * @example
422
- * <div>
423
- * <code>
424
381
  * function setup() {
425
382
  * createCanvas(100, 100);
426
383
  *
@@ -435,11 +392,8 @@ function pointer(p5, fn, lifecycles){
435
392
  *
436
393
  * line(pmouseX, pmouseY, mouseX, mouseY);
437
394
  * }
438
- * </code>
439
- * </div>
440
395
  *
441
- * <div>
442
- * <code>
396
+ * @example
443
397
  * function setup() {
444
398
  * createCanvas(100, 100, WEBGL);
445
399
  *
@@ -459,8 +413,6 @@ function pointer(p5, fn, lifecycles){
459
413
  * // Draw the line.
460
414
  * line(pmx, pmy, mx, my);
461
415
  * }
462
- * </code>
463
- * </div>
464
416
  */
465
417
  fn.pmouseY = 0;
466
418
 
@@ -482,8 +434,6 @@ function pointer(p5, fn, lifecycles){
482
434
  * @readOnly
483
435
  *
484
436
  * @example
485
- * <div>
486
- * <code>
487
437
  * function setup() {
488
438
  * createCanvas(100, 100);
489
439
  *
@@ -500,8 +450,6 @@ function pointer(p5, fn, lifecycles){
500
450
  * // Display the mouse's coordinates within the browser window.
501
451
  * text(`x: ${int(winMouseX)} y: ${int(winMouseY)}`, 50, 50);
502
452
  * }
503
- * </code>
504
- * </div>
505
453
  */
506
454
  fn.winMouseX = 0;
507
455
 
@@ -523,8 +471,6 @@ function pointer(p5, fn, lifecycles){
523
471
  * @readOnly
524
472
  *
525
473
  * @example
526
- * <div>
527
- * <code>
528
474
  * function setup() {
529
475
  * createCanvas(100, 100);
530
476
  *
@@ -541,8 +487,6 @@ function pointer(p5, fn, lifecycles){
541
487
  * // Display the mouse's coordinates within the browser window.
542
488
  * text(`x: ${int(winMouseX)} y: ${int(winMouseY)}`, 50, 50);
543
489
  * }
544
- * </code>
545
- * </div>
546
490
  */
547
491
  fn.winMouseY = 0;
548
492
 
@@ -569,8 +513,6 @@ function pointer(p5, fn, lifecycles){
569
513
  * @readOnly
570
514
  *
571
515
  * @example
572
- * <div>
573
- * <code>
574
516
  * function setup() {
575
517
  * createCanvas(100, 100);
576
518
  *
@@ -589,11 +531,8 @@ function pointer(p5, fn, lifecycles){
589
531
  * // Draw the circle.
590
532
  * circle(50, 50, d);
591
533
  * }
592
- * </code>
593
- * </div>
594
534
  *
595
- * <div>
596
- * <code>
535
+ * @example
597
536
  * function setup() {
598
537
  * // Create the canvas and set its position.
599
538
  * let cnv = createCanvas(100, 100);
@@ -612,8 +551,6 @@ function pointer(p5, fn, lifecycles){
612
551
  * // Display pwinMouseX.
613
552
  * text(pwinMouseX, 50, 50);
614
553
  * }
615
- * </code>
616
- * </div>
617
554
  */
618
555
  fn.pwinMouseX = 0;
619
556
 
@@ -640,8 +577,6 @@ function pointer(p5, fn, lifecycles){
640
577
  * @readOnly
641
578
  *
642
579
  * @example
643
- * <div>
644
- * <code>
645
580
  * function setup() {
646
581
  * createCanvas(100, 100);
647
582
  *
@@ -660,11 +595,8 @@ function pointer(p5, fn, lifecycles){
660
595
  * // Draw the circle.
661
596
  * circle(50, 50, d);
662
597
  * }
663
- * </code>
664
- * </div>
665
598
  *
666
- * <div>
667
- * <code>
599
+ * @example
668
600
  * function setup() {
669
601
  * // Create the canvas and set its position.
670
602
  * let cnv = createCanvas(100, 100);
@@ -683,8 +615,6 @@ function pointer(p5, fn, lifecycles){
683
615
  * // Display pwinMouseY.
684
616
  * text(pwinMouseY, 50, 50);
685
617
  * }
686
- * </code>
687
- * </div>
688
618
  */
689
619
  fn.pwinMouseY = 0;
690
620
 
@@ -708,8 +638,6 @@ function pointer(p5, fn, lifecycles){
708
638
  * @readOnly
709
639
  *
710
640
  * @example
711
- * <div>
712
- * <code>
713
641
  * function setup() {
714
642
  * createCanvas(200, 200);
715
643
  *
@@ -730,11 +658,8 @@ function pointer(p5, fn, lifecycles){
730
658
  * text(`Right: ${mouseButton.right}`, width / 2, height / 2);
731
659
  * text(`Center: ${mouseButton.center}`, width / 2, height / 2 + 20);
732
660
  * }
733
- * </code>
734
- * </div>
735
661
  *
736
- * <div>
737
- * <code>
662
+ * @example
738
663
  * function setup() {
739
664
  * createCanvas(100, 100);
740
665
  *
@@ -758,8 +683,6 @@ function pointer(p5, fn, lifecycles){
758
683
  * }
759
684
  * }
760
685
  * }
761
- * </code>
762
- * </div>
763
686
  */
764
687
  fn.mouseButton = {
765
688
  left: false,
@@ -802,8 +725,6 @@ function pointer(p5, fn, lifecycles){
802
725
  * @readOnly
803
726
  *
804
727
  * @example
805
- * <div>
806
- * <code>
807
728
  * // On a touchscreen device, touch the canvas using one or more fingers
808
729
  * // at the same time.
809
730
  *
@@ -823,11 +744,8 @@ function pointer(p5, fn, lifecycles){
823
744
  * circle(touch.x, touch.y, 40);
824
745
  * }
825
746
  * }
826
- * </code>
827
- * </div>
828
747
  *
829
- * <div>
830
- * <code>
748
+ * @example
831
749
  * // On a touchscreen device, touch the canvas using one or more fingers
832
750
  * // at the same time.
833
751
  *
@@ -847,8 +765,6 @@ function pointer(p5, fn, lifecycles){
847
765
  * text(`${touch.x}, ${touch.y}`, touch.x, touch.y - 40);
848
766
  * }
849
767
  * }
850
- * </code>
851
- * </div>
852
768
  */
853
769
  fn.touches = [];
854
770
  fn._activePointers = new Map();
@@ -861,8 +777,6 @@ function pointer(p5, fn, lifecycles){
861
777
  * @readOnly
862
778
  *
863
779
  * @example
864
- * <div>
865
- * <code>
866
780
  * function setup() {
867
781
  * createCanvas(100, 100);
868
782
  *
@@ -881,11 +795,8 @@ function pointer(p5, fn, lifecycles){
881
795
  * // Display the mouseIsPressed variable.
882
796
  * text(mouseIsPressed, 25, 50);
883
797
  * }
884
- * </code>
885
- * </div>
886
798
  *
887
- * <div>
888
- * <code>
799
+ * @example
889
800
  * function setup() {
890
801
  * createCanvas(100, 100);
891
802
  *
@@ -907,8 +818,6 @@ function pointer(p5, fn, lifecycles){
907
818
  * // Draw the square.
908
819
  * square(25, 25, 50);
909
820
  * }
910
- * </code>
911
- * </div>
912
821
  */
913
822
  fn.mouseIsPressed = false;
914
823
 
@@ -1035,8 +944,6 @@ function pointer(p5, fn, lifecycles){
1035
944
  * @param {MouseEvent} [event] optional `MouseEvent` argument.
1036
945
  *
1037
946
  * @example
1038
- * <div>
1039
- * <code>
1040
947
  * let value = 0;
1041
948
  *
1042
949
  * function setup() {
@@ -1068,8 +975,6 @@ function pointer(p5, fn, lifecycles){
1068
975
  * // Uncomment to prevent any default behavior.
1069
976
  * // return false;
1070
977
  * }
1071
- * </code>
1072
- * </div>
1073
978
  */
1074
979
 
1075
980
  /**
@@ -1123,8 +1028,6 @@ function pointer(p5, fn, lifecycles){
1123
1028
  * @param {MouseEvent} [event] optional `MouseEvent` argument.
1124
1029
  *
1125
1030
  * @example
1126
- * <div>
1127
- * <code>
1128
1031
  * let value = 0;
1129
1032
  *
1130
1033
  * function setup() {
@@ -1156,8 +1059,6 @@ function pointer(p5, fn, lifecycles){
1156
1059
  * // Uncomment to prevent any default behavior.
1157
1060
  * // return false;
1158
1061
  * }
1159
- * </code>
1160
- * </div>
1161
1062
  */
1162
1063
  fn._onpointermove = function(e) {
1163
1064
  let executeDefault;
@@ -1242,8 +1143,6 @@ function pointer(p5, fn, lifecycles){
1242
1143
  * @param {MouseEvent} [event] optional `MouseEvent` argument.
1243
1144
  *
1244
1145
  * @example
1245
- * <div>
1246
- * <code>
1247
1146
  * let value = 0;
1248
1147
  *
1249
1148
  * function setup() {
@@ -1275,11 +1174,8 @@ function pointer(p5, fn, lifecycles){
1275
1174
  * // Uncomment to prevent any default behavior.
1276
1175
  * // return false;
1277
1176
  * }
1278
- * </code>
1279
- * </div>
1280
1177
  *
1281
- * <div>
1282
- * <code>
1178
+ * @example
1283
1179
  * function setup() {
1284
1180
  * createCanvas(100, 100);
1285
1181
  *
@@ -1323,8 +1219,6 @@ function pointer(p5, fn, lifecycles){
1323
1219
  * fill('orange');
1324
1220
  * strokeWeight(10);
1325
1221
  * }
1326
- * </code>
1327
- * </div>
1328
1222
  */
1329
1223
  fn._onpointerdown = function(e) {
1330
1224
  let executeDefault;
@@ -1401,8 +1295,6 @@ function pointer(p5, fn, lifecycles){
1401
1295
  * @param {MouseEvent} [event] optional `MouseEvent` argument.
1402
1296
  *
1403
1297
  * @example
1404
- * <div>
1405
- * <code>
1406
1298
  * let value = 0;
1407
1299
  *
1408
1300
  * function setup() {
@@ -1434,11 +1326,8 @@ function pointer(p5, fn, lifecycles){
1434
1326
  * // Uncomment to prevent any default behavior.
1435
1327
  * // return false;
1436
1328
  * }
1437
- * </code>
1438
- * </div>
1439
1329
  *
1440
- * <div>
1441
- * <code>
1330
+ * @example
1442
1331
  * function setup() {
1443
1332
  * createCanvas(100, 100);
1444
1333
  *
@@ -1482,8 +1371,6 @@ function pointer(p5, fn, lifecycles){
1482
1371
  * fill('orange');
1483
1372
  * strokeWeight(10);
1484
1373
  * }
1485
- * </code>
1486
- * </div>
1487
1374
  */
1488
1375
  fn._onpointerup = function(e) {
1489
1376
  let executeDefault;
@@ -1565,8 +1452,6 @@ function pointer(p5, fn, lifecycles){
1565
1452
  * @param {MouseEvent} [event] optional `MouseEvent` argument.
1566
1453
  *
1567
1454
  * @example
1568
- * <div>
1569
- * <code>
1570
1455
  * let value = 0;
1571
1456
  *
1572
1457
  * function setup() {
@@ -1597,11 +1482,8 @@ function pointer(p5, fn, lifecycles){
1597
1482
  * // Uncomment to prevent any default behavior.
1598
1483
  * // return false;
1599
1484
  * }
1600
- * </code>
1601
- * </div>
1602
1485
  *
1603
- * <div>
1604
- * <code>
1486
+ * @example
1605
1487
  * function setup() {
1606
1488
  * createCanvas(100, 100);
1607
1489
  *
@@ -1645,8 +1527,6 @@ function pointer(p5, fn, lifecycles){
1645
1527
  * fill('orange');
1646
1528
  * strokeWeight(10);
1647
1529
  * }
1648
- * </code>
1649
- * </div>
1650
1530
  */
1651
1531
  fn._onclick = function(e) {
1652
1532
  if (typeof this._customActions.mouseClicked === 'function') {
@@ -1709,8 +1589,6 @@ function pointer(p5, fn, lifecycles){
1709
1589
  * @param {MouseEvent} [event] optional `MouseEvent` argument.
1710
1590
  *
1711
1591
  * @example
1712
- * <div>
1713
- * <code>
1714
1592
  * let value = 0;
1715
1593
  *
1716
1594
  * function setup() {
@@ -1741,11 +1619,8 @@ function pointer(p5, fn, lifecycles){
1741
1619
  * // Uncomment to prevent any default behavior.
1742
1620
  * // return false;
1743
1621
  * }
1744
- * </code>
1745
- * </div>
1746
1622
  *
1747
- * <div>
1748
- * <code>
1623
+ * @example
1749
1624
  * let value = 0;
1750
1625
  *
1751
1626
  * function setup() {
@@ -1774,8 +1649,6 @@ function pointer(p5, fn, lifecycles){
1774
1649
  * // Uncomment to prevent any default behavior.
1775
1650
  * // return false;
1776
1651
  * }
1777
- * </code>
1778
- * </div>
1779
1652
  */
1780
1653
 
1781
1654
  fn._ondblclick = function(e) {
@@ -1860,8 +1733,6 @@ function pointer(p5, fn, lifecycles){
1860
1733
  * @param {WheelEvent} [event] optional `WheelEvent` argument.
1861
1734
  *
1862
1735
  * @example
1863
- * <div>
1864
- * <code>
1865
1736
  * let circleSize = 0;
1866
1737
  *
1867
1738
  * function setup() {
@@ -1885,11 +1756,8 @@ function pointer(p5, fn, lifecycles){
1885
1756
  * // Uncomment to prevent any default behavior.
1886
1757
  * // return false;
1887
1758
  * }
1888
- * </code>
1889
- * </div>
1890
1759
  *
1891
- * <div>
1892
- * <code>
1760
+ * @example
1893
1761
  * let direction = '';
1894
1762
  *
1895
1763
  * function setup() {
@@ -1922,8 +1790,6 @@ function pointer(p5, fn, lifecycles){
1922
1790
  * // Uncomment to prevent any default behavior.
1923
1791
  * // return false;
1924
1792
  * }
1925
- * </code>
1926
- * </div>
1927
1793
  */
1928
1794
  fn._onwheel = function(e) {
1929
1795
  this._mouseWheelDeltaY = e.deltaY;
@@ -1956,8 +1822,6 @@ function pointer(p5, fn, lifecycles){
1956
1822
  * @method requestPointerLock
1957
1823
  *
1958
1824
  * @example
1959
- * <div>
1960
- * <code>
1961
1825
  * let score = 0;
1962
1826
  *
1963
1827
  * function setup() {
@@ -1986,8 +1850,6 @@ function pointer(p5, fn, lifecycles){
1986
1850
  * function doubleClicked() {
1987
1851
  * requestPointerLock();
1988
1852
  * }
1989
- * </code>
1990
- * </div>
1991
1853
  */
1992
1854
  fn.requestPointerLock = function() {
1993
1855
  // pointer lock object forking for cross browser
@@ -2018,8 +1880,6 @@ function pointer(p5, fn, lifecycles){
2018
1880
  * @method exitPointerLock
2019
1881
  *
2020
1882
  * @example
2021
- * <div>
2022
- * <code>
2023
1883
  * let isLocked = false;
2024
1884
  *
2025
1885
  * function setup() {
@@ -2055,8 +1915,6 @@ function pointer(p5, fn, lifecycles){
2055
1915
  * isLocked = true;
2056
1916
  * }
2057
1917
  * }
2058
- * </code>
2059
- * </div>
2060
1918
  */
2061
1919
  fn.exitPointerLock = function() {
2062
1920
  document.exitPointerLock();
@@ -1,4 +1,4 @@
1
- import { ae as THRESHOLD, af as POSTERIZE, ab as BLUR } from '../constants-DEJVKr9Z.js';
1
+ import { ae as THRESHOLD, af as POSTERIZE, ab as BLUR } from '../constants-DQyACdzq.js';
2
2
 
3
3
  const filterParamDefaults = {
4
4
  [BLUR]: 3,
@@ -1,13 +1,13 @@
1
1
  import { Shader } from '../webgl/p5.Shader.js';
2
- import { s as setWebGLUniformValue, e as setWebGLTextureParams, g as getWebGLUniformMetadata, h as getWebGLShaderAttributes, j as populateGLSLHooks, T as Texture } from '../rendering-CsICjEXA.js';
3
- import { I as Image } from '../p5.Renderer-QoFcvj3f.js';
4
- import { C as CLAMP, aa as WEBGL2, p as CORNER, B as BLEND, ab as BLUR, ac as WEBGL } from '../constants-DEJVKr9Z.js';
2
+ import { s as setWebGLUniformValue, e as setWebGLTextureParams, g as getWebGLUniformMetadata, h as getWebGLShaderAttributes, j as populateGLSLHooks, T as Texture } from '../rendering-h9unX5K0.js';
3
+ import { I as Image } from '../p5.Renderer-D-5LdCRz.js';
4
+ import { C as CLAMP, aa as WEBGL2, p as CORNER, B as BLEND, ab as BLUR, ac as WEBGL } from '../constants-DQyACdzq.js';
5
5
  import { filterParamDefaults } from './const.js';
6
6
  import { w as webgl2CompatibilityShader, f as filterBaseVert, a as filterBaseFrag, n as noiseGLSL } from '../noise3DGLSL-Bwrdi4gi.js';
7
7
  import { glslBackend } from '../webgl/strands_glslBackend.js';
8
8
  import { getShaderHookTypes } from '../webgl/shaderHookUtils.js';
9
9
  import { makeFilterShader } from '../core/filterShaders.js';
10
- import '../creating_reading-CgHCHxqN.js';
10
+ import '../creating_reading-ZXzcZEsb.js';
11
11
  import 'colorjs.io/fn';
12
12
  import '../color/color_spaces/hsb.js';
13
13
  import '../dom/p5.Element.js';
@@ -23,7 +23,6 @@ import '../color/setting.js';
23
23
  import 'omggif';
24
24
  import '../io/csv.js';
25
25
  import '../io/utilities.js';
26
- import 'file-saver';
27
26
  import 'gifenc';
28
27
  import './pixels.js';
29
28
  import './filters.js';
@@ -1,19 +1,18 @@
1
1
  import 'omggif';
2
2
  import '../dom/p5.Element.js';
3
- export { i as default } from '../rendering-CsICjEXA.js';
3
+ export { i as default } from '../rendering-h9unX5K0.js';
4
4
  import '../dom/p5.File.js';
5
5
  import '../io/p5.XML.js';
6
- import '../creating_reading-CgHCHxqN.js';
6
+ import '../creating_reading-ZXzcZEsb.js';
7
7
  import 'colorjs.io/fn';
8
8
  import '../color/color_spaces/hsb.js';
9
- import '../constants-DEJVKr9Z.js';
10
- import '../p5.Renderer-QoFcvj3f.js';
9
+ import '../constants-DQyACdzq.js';
10
+ import '../p5.Renderer-D-5LdCRz.js';
11
11
  import './filters.js';
12
12
  import '../math/p5.Vector.js';
13
13
  import '../shape/custom_shapes.js';
14
14
  import '../core/States.js';
15
15
  import '../io/utilities.js';
16
- import 'file-saver';
17
16
  import '../dom/p5.MediaElement.js';
18
17
  import '../shape/2d_primitives.js';
19
18
  import '../core/helpers.js';
@@ -1,9 +1,9 @@
1
- import { i as image$1, b as loadingDisplaying, t as texture } from '../rendering-CsICjEXA.js';
2
- import { i as image$2 } from '../p5.Renderer-QoFcvj3f.js';
1
+ import { i as image$1, b as loadingDisplaying, t as texture } from '../rendering-h9unX5K0.js';
2
+ import { i as image$2 } from '../p5.Renderer-D-5LdCRz.js';
3
3
  import pixels from './pixels.js';
4
4
  import shader from '../webgl/p5.Shader.js';
5
- import '../constants-DEJVKr9Z.js';
6
- import '../creating_reading-CgHCHxqN.js';
5
+ import '../constants-DQyACdzq.js';
6
+ import '../creating_reading-ZXzcZEsb.js';
7
7
  import 'colorjs.io/fn';
8
8
  import '../color/color_spaces/hsb.js';
9
9
  import '../dom/p5.Element.js';
@@ -19,7 +19,6 @@ import '../color/setting.js';
19
19
  import 'omggif';
20
20
  import '../io/csv.js';
21
21
  import '../io/utilities.js';
22
- import 'file-saver';
23
22
  import 'gifenc';
24
23
  import '../core/transform.js';
25
24
  import '../webgl/GeometryBuilder.js';
@@ -1,21 +1,20 @@
1
1
  import '../core/helpers.js';
2
- import '../constants-DEJVKr9Z.js';
3
- export { b as default } from '../rendering-CsICjEXA.js';
2
+ import '../constants-DQyACdzq.js';
3
+ export { b as default } from '../rendering-h9unX5K0.js';
4
4
  import 'omggif';
5
5
  import 'gifenc';
6
- import '../creating_reading-CgHCHxqN.js';
6
+ import '../creating_reading-ZXzcZEsb.js';
7
7
  import 'colorjs.io/fn';
8
8
  import '../color/color_spaces/hsb.js';
9
9
  import '../dom/p5.Element.js';
10
10
  import '../dom/p5.File.js';
11
11
  import '../io/p5.XML.js';
12
- import '../p5.Renderer-QoFcvj3f.js';
12
+ import '../p5.Renderer-D-5LdCRz.js';
13
13
  import './filters.js';
14
14
  import '../math/p5.Vector.js';
15
15
  import '../shape/custom_shapes.js';
16
16
  import '../core/States.js';
17
17
  import '../io/utilities.js';
18
- import 'file-saver';
19
18
  import '../dom/p5.MediaElement.js';
20
19
  import '../shape/2d_primitives.js';
21
20
  import '../shape/attributes.js';