p5 2.2.0-rc.3 → 2.2.0-rc.4

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 (85) hide show
  1. package/dist/accessibility/color_namer.js +4 -4
  2. package/dist/accessibility/index.js +4 -4
  3. package/dist/app.js +4 -4
  4. package/dist/color/color_conversion.js +4 -4
  5. package/dist/color/index.js +1 -1
  6. package/dist/color/setting.js +1 -1
  7. package/dist/{constants-J9QlHaWW.js → constants-DAarZ_Jd.js} +1 -1
  8. package/dist/core/constants.js +1 -1
  9. package/dist/core/environment.js +1 -1
  10. package/dist/core/filterShaders.js +20 -14
  11. package/dist/core/friendly_errors/fes_core.js +1 -1
  12. package/dist/core/friendly_errors/file_errors.js +1 -1
  13. package/dist/core/friendly_errors/index.js +1 -1
  14. package/dist/core/friendly_errors/param_validator.js +1 -1
  15. package/dist/core/friendly_errors/sketch_verifier.js +1 -1
  16. package/dist/core/helpers.js +1 -1
  17. package/dist/core/init.js +4 -4
  18. package/dist/core/internationalization.js +1 -1
  19. package/dist/core/legacy.js +4 -4
  20. package/dist/core/main.js +4 -4
  21. package/dist/core/p5.Graphics.js +3 -3
  22. package/dist/core/p5.Renderer.js +2 -2
  23. package/dist/core/p5.Renderer2D.js +4 -4
  24. package/dist/core/p5.Renderer3D.js +3 -3
  25. package/dist/core/rendering.js +3 -3
  26. package/dist/dom/dom.js +1 -1
  27. package/dist/dom/index.js +1 -1
  28. package/dist/dom/p5.Element.js +1 -1
  29. package/dist/dom/p5.MediaElement.js +1 -1
  30. package/dist/image/const.js +1 -1
  31. package/dist/image/filterRenderer2D.js +3 -3
  32. package/dist/image/image.js +3 -3
  33. package/dist/image/index.js +3 -3
  34. package/dist/image/loading_displaying.js +3 -3
  35. package/dist/image/p5.Image.js +2 -2
  36. package/dist/io/files.js +3 -3
  37. package/dist/io/index.js +3 -3
  38. package/dist/{main-YIcP6qW5.js → main-CyTEP1c4.js} +3 -3
  39. package/dist/math/Matrices/Matrix.js +1 -1
  40. package/dist/math/Matrices/MatrixNumjs.js +1 -1
  41. package/dist/math/index.js +1 -1
  42. package/dist/math/p5.Matrix.js +1 -1
  43. package/dist/math/p5.Vector.js +1 -1
  44. package/dist/math/trigonometry.js +1 -1
  45. package/dist/{p5.Renderer-CQfJjPpD.js → p5.Renderer-Ds3PCIgb.js} +1 -1
  46. package/dist/{rendering-IbeJmcSe.js → rendering-DPysJ2_4.js} +30 -9
  47. package/dist/shape/2d_primitives.js +1 -1
  48. package/dist/shape/attributes.js +1 -1
  49. package/dist/shape/custom_shapes.js +1 -1
  50. package/dist/shape/index.js +1 -1
  51. package/dist/strands/p5.strands.js +4 -2
  52. package/dist/strands/strands_for.js +1 -1
  53. package/dist/strands/strands_transpiler.js +218 -102
  54. package/dist/type/index.js +2 -2
  55. package/dist/type/p5.Font.js +2 -2
  56. package/dist/type/textCore.js +2 -2
  57. package/dist/webgl/3d_primitives.js +3 -3
  58. package/dist/webgl/GeometryBuilder.js +1 -1
  59. package/dist/webgl/ShapeBuilder.js +1 -1
  60. package/dist/webgl/enums.js +1 -1
  61. package/dist/webgl/index.js +3 -3
  62. package/dist/webgl/interaction.js +1 -1
  63. package/dist/webgl/light.js +3 -3
  64. package/dist/webgl/loading.js +3 -3
  65. package/dist/webgl/material.js +3 -3
  66. package/dist/webgl/p5.Camera.js +3 -3
  67. package/dist/webgl/p5.Framebuffer.js +3 -3
  68. package/dist/webgl/p5.Geometry.js +1 -1
  69. package/dist/webgl/p5.Quat.js +1 -1
  70. package/dist/webgl/p5.RendererGL.js +3 -3
  71. package/dist/webgl/p5.Shader.js +10 -3
  72. package/dist/webgl/p5.Texture.js +3 -3
  73. package/dist/webgl/text.js +3 -3
  74. package/dist/webgl/utils.js +3 -3
  75. package/dist/webgpu/index.js +1 -1
  76. package/dist/webgpu/p5.RendererWebGPU.js +1 -1
  77. package/lib/p5.esm.js +282 -130
  78. package/lib/p5.esm.min.js +1 -1
  79. package/lib/p5.js +282 -130
  80. package/lib/p5.min.js +1 -1
  81. package/lib/p5.webgpu.esm.js +1 -1
  82. package/lib/p5.webgpu.js +1 -1
  83. package/lib/p5.webgpu.min.js +1 -1
  84. package/package.json +1 -1
  85. package/types/p5.d.ts +10 -3
@@ -1,17 +1,17 @@
1
1
  import color_conversion from '../color/color_conversion.js';
2
- import '../main-YIcP6qW5.js';
3
- import '../constants-J9QlHaWW.js';
2
+ import '../main-CyTEP1c4.js';
3
+ import '../constants-DAarZ_Jd.js';
4
4
  import '../core/transform.js';
5
5
  import '../core/structure.js';
6
6
  import '../core/environment.js';
7
- import '../rendering-IbeJmcSe.js';
7
+ import '../rendering-DPysJ2_4.js';
8
8
  import '../creating_reading-p2iQtNm5.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
11
11
  import '../dom/p5.Element.js';
12
12
  import '../dom/p5.File.js';
13
13
  import '../io/p5.XML.js';
14
- import '../p5.Renderer-CQfJjPpD.js';
14
+ import '../p5.Renderer-Ds3PCIgb.js';
15
15
  import '../image/filters.js';
16
16
  import '../math/p5.Vector.js';
17
17
  import '../shape/custom_shapes.js';
@@ -4,19 +4,19 @@ import textOutput from './textOutput.js';
4
4
  import outputs from './outputs.js';
5
5
  import colorNamer from './color_namer.js';
6
6
  import '../color/color_conversion.js';
7
- import '../main-YIcP6qW5.js';
8
- import '../constants-J9QlHaWW.js';
7
+ import '../main-CyTEP1c4.js';
8
+ import '../constants-DAarZ_Jd.js';
9
9
  import '../core/transform.js';
10
10
  import '../core/structure.js';
11
11
  import '../core/environment.js';
12
- import '../rendering-IbeJmcSe.js';
12
+ import '../rendering-DPysJ2_4.js';
13
13
  import '../creating_reading-p2iQtNm5.js';
14
14
  import 'colorjs.io/fn';
15
15
  import '../color/color_spaces/hsb.js';
16
16
  import '../dom/p5.Element.js';
17
17
  import '../dom/p5.File.js';
18
18
  import '../io/p5.XML.js';
19
- import '../p5.Renderer-CQfJjPpD.js';
19
+ import '../p5.Renderer-Ds3PCIgb.js';
20
20
  import '../image/filters.js';
21
21
  import '../math/p5.Vector.js';
22
22
  import '../shape/custom_shapes.js';
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as p5 } from './main-YIcP6qW5.js';
1
+ import { p as p5 } from './main-CyTEP1c4.js';
2
2
  import shape from './shape/index.js';
3
3
  import accessibility from './accessibility/index.js';
4
4
  import color from './color/index.js';
@@ -15,18 +15,18 @@ import type from './type/index.js';
15
15
  import shader from './webgl/p5.Shader.js';
16
16
  import strands from './strands/p5.strands.js';
17
17
  import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init.js';
18
- import './constants-J9QlHaWW.js';
18
+ import './constants-DAarZ_Jd.js';
19
19
  import './core/transform.js';
20
20
  import './core/structure.js';
21
21
  import './core/environment.js';
22
- import './rendering-IbeJmcSe.js';
22
+ import './rendering-DPysJ2_4.js';
23
23
  import './creating_reading-p2iQtNm5.js';
24
24
  import 'colorjs.io/fn';
25
25
  import './color/color_spaces/hsb.js';
26
26
  import './dom/p5.Element.js';
27
27
  import './dom/p5.File.js';
28
28
  import './io/p5.XML.js';
29
- import './p5.Renderer-CQfJjPpD.js';
29
+ import './p5.Renderer-Ds3PCIgb.js';
30
30
  import './image/filters.js';
31
31
  import './math/p5.Vector.js';
32
32
  import './shape/custom_shapes.js';
@@ -1,16 +1,16 @@
1
- import { p as p5 } from '../main-YIcP6qW5.js';
2
- import '../constants-J9QlHaWW.js';
1
+ import { p as p5 } from '../main-CyTEP1c4.js';
2
+ import '../constants-DAarZ_Jd.js';
3
3
  import '../core/transform.js';
4
4
  import '../core/structure.js';
5
5
  import '../core/environment.js';
6
- import '../rendering-IbeJmcSe.js';
6
+ import '../rendering-DPysJ2_4.js';
7
7
  import '../creating_reading-p2iQtNm5.js';
8
8
  import 'colorjs.io/fn';
9
9
  import './color_spaces/hsb.js';
10
10
  import '../dom/p5.Element.js';
11
11
  import '../dom/p5.File.js';
12
12
  import '../io/p5.XML.js';
13
- import '../p5.Renderer-CQfJjPpD.js';
13
+ import '../p5.Renderer-Ds3PCIgb.js';
14
14
  import '../image/filters.js';
15
15
  import '../math/p5.Vector.js';
16
16
  import '../shape/custom_shapes.js';
@@ -2,7 +2,7 @@ import { c as creatingReading, a as color$1 } from '../creating_reading-p2iQtNm5
2
2
  import setting from './setting.js';
3
3
  import 'colorjs.io/fn';
4
4
  import './color_spaces/hsb.js';
5
- import '../constants-J9QlHaWW.js';
5
+ import '../constants-DAarZ_Jd.js';
6
6
 
7
7
  function color(p5){
8
8
  p5.registerAddon(creatingReading);
@@ -1,4 +1,4 @@
1
- import { a2 as NORMAL, B as BLEND } from '../constants-J9QlHaWW.js';
1
+ import { a2 as NORMAL, B as BLEND } from '../constants-DAarZ_Jd.js';
2
2
  import { R as RGB, b as RGBHDR, H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH } from '../creating_reading-p2iQtNm5.js';
3
3
  import 'colorjs.io/fn';
4
4
  import './color_spaces/hsb.js';
@@ -11,7 +11,7 @@ const _PI = Math.PI;
11
11
  * @property {String} VERSION
12
12
  * @final
13
13
  */
14
- const VERSION = '2.2.0-rc.3';
14
+ const VERSION = '2.2.0-rc.4';
15
15
 
16
16
  // GRAPHICS RENDERER
17
17
  /**
@@ -1 +1 @@
1
- export { A as ADD, aN as ALT, j as ARROW, a4 as AUTO, i as AXES, aO as BACKSPACE, ax as BASELINE, z as BEVEL, b7 as BEZIER, B as BLEND, ab as BLUR, b0 as BOLD, b1 as BOLDITALIC, aw as BOTTOM, as as BURN, v as CENTER, b2 as CHAR, au as CHORD, C as CLAMP, V as CLOSE, aC as CONTAIN, aP as CONTROL, p as CORNER, t as CORNERS, aB as COVER, k as CROSS, b8 as CURVE, D as DARKEST, a6 as DEG_TO_RAD, aQ as DELETE, an as DIFFERENCE, ah as DILATE, ar as DODGE, aR as DOWN_ARROW, O as EMPTY_PATH, aS as ENTER, ai as ERODE, aT as ESCAPE, a0 as EXCLUDE, E as EXCLUSION, be as FALLBACK, aD as FILL, a7 as FLAT, F as FLOAT, aF as FULL, ak as GRAY, G as GRID, H as HALF_FLOAT, r as HALF_PI, l as HAND, ap as HARD_LIGHT, ad as IMAGE, ba as IMMEDIATE, J as INCLUDE, aj as INVERT, a$ as ITALIC, a1 as JOIN, bd as LABEL, bb as LANDSCAPE, av as LEFT, aU as LEFT_ARROW, L as LIGHTEST, g as LINEAR, aG as LINEAR_MIPMAP, Y as LINES, aL as LINE_LOOP, aK as LINE_STRIP, e as MIRROR, I as MITER, m as MOVE, M as MULTIPLY, N as NEAREST, a2 as NORMAL, ag as OPAQUE, Q as OPEN, aV as OPTION, ao as OVERLAY, P as P2D, aH as P2DHDR, K as PATH, s as PI, at as PIE, X as POINTS, bc as PORTRAIT, af as POSTERIZE, y as PROJECT, b6 as QUADRATIC, Z as QUADS, $ as QUAD_STRIP, aI as QUARTER_PI, u as RADIUS, a5 as RAD_TO_DEG, b as REMOVE, f as REPEAT, R as REPLACE, aW as RETURN, a9 as RIGHT, aX as RIGHT_ARROW, w as ROUND, a as SCREEN, aY as SHIFT, aE as SIMPLE, a8 as SMOOTH, aq as SOFT_LIGHT, x as SQUARE, b9 as STROKE, S as SUBTRACT, aZ as TAB, aJ as TAU, aM as TESS, n as TEXT, h as TEXTURE, ae as THRESHOLD, ay as TOP, c as TRIANGLES, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, q as TWO_PI, U as UNSIGNED_BYTE, d as UNSIGNED_INT, a_ as UP_ARROW, az as VERSION, o as WAIT, ac as WEBGL, aa as WEBGL2, W as WEBGPU, aA as WORD, b5 as _CTX_MIDDLE, al as _DEFAULT_FILL, b4 as _DEFAULT_LEADMULT, am as _DEFAULT_STROKE, b3 as _DEFAULT_TEXT_FILL } from '../constants-J9QlHaWW.js';
1
+ export { A as ADD, aN as ALT, j as ARROW, a4 as AUTO, i as AXES, aO as BACKSPACE, ax as BASELINE, z as BEVEL, b7 as BEZIER, B as BLEND, ab as BLUR, b0 as BOLD, b1 as BOLDITALIC, aw as BOTTOM, as as BURN, v as CENTER, b2 as CHAR, au as CHORD, C as CLAMP, V as CLOSE, aC as CONTAIN, aP as CONTROL, p as CORNER, t as CORNERS, aB as COVER, k as CROSS, b8 as CURVE, D as DARKEST, a6 as DEG_TO_RAD, aQ as DELETE, an as DIFFERENCE, ah as DILATE, ar as DODGE, aR as DOWN_ARROW, O as EMPTY_PATH, aS as ENTER, ai as ERODE, aT as ESCAPE, a0 as EXCLUDE, E as EXCLUSION, be as FALLBACK, aD as FILL, a7 as FLAT, F as FLOAT, aF as FULL, ak as GRAY, G as GRID, H as HALF_FLOAT, r as HALF_PI, l as HAND, ap as HARD_LIGHT, ad as IMAGE, ba as IMMEDIATE, J as INCLUDE, aj as INVERT, a$ as ITALIC, a1 as JOIN, bd as LABEL, bb as LANDSCAPE, av as LEFT, aU as LEFT_ARROW, L as LIGHTEST, g as LINEAR, aG as LINEAR_MIPMAP, Y as LINES, aL as LINE_LOOP, aK as LINE_STRIP, e as MIRROR, I as MITER, m as MOVE, M as MULTIPLY, N as NEAREST, a2 as NORMAL, ag as OPAQUE, Q as OPEN, aV as OPTION, ao as OVERLAY, P as P2D, aH as P2DHDR, K as PATH, s as PI, at as PIE, X as POINTS, bc as PORTRAIT, af as POSTERIZE, y as PROJECT, b6 as QUADRATIC, Z as QUADS, $ as QUAD_STRIP, aI as QUARTER_PI, u as RADIUS, a5 as RAD_TO_DEG, b as REMOVE, f as REPEAT, R as REPLACE, aW as RETURN, a9 as RIGHT, aX as RIGHT_ARROW, w as ROUND, a as SCREEN, aY as SHIFT, aE as SIMPLE, a8 as SMOOTH, aq as SOFT_LIGHT, x as SQUARE, b9 as STROKE, S as SUBTRACT, aZ as TAB, aJ as TAU, aM as TESS, n as TEXT, h as TEXTURE, ae as THRESHOLD, ay as TOP, c as TRIANGLES, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, q as TWO_PI, U as UNSIGNED_BYTE, d as UNSIGNED_INT, a_ as UP_ARROW, az as VERSION, o as WAIT, ac as WEBGL, aa as WEBGL2, W as WEBGPU, aA as WORD, b5 as _CTX_MIDDLE, al as _DEFAULT_FILL, b4 as _DEFAULT_LEADMULT, am as _DEFAULT_STROKE, b3 as _DEFAULT_TEXT_FILL } from '../constants-DAarZ_Jd.js';
@@ -1,4 +1,4 @@
1
- import { j as ARROW, k as CROSS, l as HAND, m as MOVE, n as TEXT, o as WAIT, P as P2D } from '../constants-J9QlHaWW.js';
1
+ import { j as ARROW, k as CROSS, l as HAND, m as MOVE, n as TEXT, o as WAIT, P as P2D } from '../constants-DAarZ_Jd.js';
2
2
 
3
3
  /**
4
4
  * @module Environment
@@ -1,12 +1,18 @@
1
- import { ag as OPAQUE, ah as DILATE, ai as ERODE, ab as BLUR, af as POSTERIZE, ae as THRESHOLD, aj as INVERT, ak as GRAY } from '../constants-J9QlHaWW.js';
1
+ import { ag as OPAQUE, ah as DILATE, ai as ERODE, ab as BLUR, af as POSTERIZE, ae as THRESHOLD, aj as INVERT, ak as GRAY } from '../constants-DAarZ_Jd.js';
2
2
 
3
3
  /*
4
- * Creates p5.strands filter shaders for cross-platform compatibility
4
+ * Creates p5.strands filter shaders for cross-platform compatibility.
5
+ *
6
+ * NOTE: These work a little differently than p5.js web editor shaders work!
7
+ * Firstly, it uses instance mode, so we have to explicitly pass in context
8
+ * variables in an argument to your callback and as a second argument to `modify`.
9
+ * Secondly, always manually specify uniform names, as variable names will change
10
+ * in minified builds.
5
11
  */
6
12
  function makeFilterShader(renderer, operation, p5) {
7
13
  switch (operation) {
8
14
  case GRAY:
9
- return renderer.baseFilterShader().modify(() => {
15
+ return renderer.baseFilterShader().modify(({ p5 }) => {
10
16
  p5.getColor((inputs, canvasContent) => {
11
17
  const tex = p5.getTexture(canvasContent, inputs.texCoord);
12
18
  // weighted grayscale with luminance values
@@ -16,7 +22,7 @@ function makeFilterShader(renderer, operation, p5) {
16
22
  }, { p5 });
17
23
 
18
24
  case INVERT:
19
- return renderer.baseFilterShader().modify(() => {
25
+ return renderer.baseFilterShader().modify(({ p5 }) => {
20
26
  p5.getColor((inputs, canvasContent) => {
21
27
  const color = p5.getTexture(canvasContent, inputs.texCoord);
22
28
  const invertedColor = p5.vec3(1.0) - color.rgb;
@@ -25,8 +31,8 @@ function makeFilterShader(renderer, operation, p5) {
25
31
  }, { p5 });
26
32
 
27
33
  case THRESHOLD:
28
- return renderer.baseFilterShader().modify(() => {
29
- const filterParameter = p5.uniformFloat();
34
+ return renderer.baseFilterShader().modify(({ p5 }) => {
35
+ const filterParameter = p5.uniformFloat('filterParameter');
30
36
  p5.getColor((inputs, canvasContent) => {
31
37
  const color = p5.getTexture(canvasContent, inputs.texCoord);
32
38
  // weighted grayscale with luminance values
@@ -38,8 +44,8 @@ function makeFilterShader(renderer, operation, p5) {
38
44
  }, { p5 });
39
45
 
40
46
  case POSTERIZE:
41
- return renderer.baseFilterShader().modify(() => {
42
- const filterParameter = p5.uniformFloat();
47
+ return renderer.baseFilterShader().modify(({ p5 }) => {
48
+ const filterParameter = p5.uniformFloat('filterParameter');
43
49
  const quantize = (color, n) => {
44
50
  // restrict values to N options/bins
45
51
  // and floor each channel to nearest value
@@ -60,9 +66,9 @@ function makeFilterShader(renderer, operation, p5) {
60
66
  }, { p5 });
61
67
 
62
68
  case BLUR:
63
- return renderer.baseFilterShader().modify(() => {
64
- const radius = p5.uniformFloat();
65
- const direction = p5.uniformVec2();
69
+ return renderer.baseFilterShader().modify(({ p5 }) => {
70
+ const radius = p5.uniformFloat('radius');
71
+ const direction = p5.uniformVec2('direction');
66
72
 
67
73
  // This isn't a real Gaussian weight, it's a quadratic weight
68
74
  const quadWeight = (x, e) => {
@@ -120,7 +126,7 @@ function makeFilterShader(renderer, operation, p5) {
120
126
  }, { p5 });
121
127
 
122
128
  case ERODE:
123
- return renderer.baseFilterShader().modify(() => {
129
+ return renderer.baseFilterShader().modify(({ p5 }) => {
124
130
  const luma = (color) => {
125
131
  return p5.dot(color.rgb, p5.vec3(0.2126, 0.7152, 0.0722));
126
132
  };
@@ -150,7 +156,7 @@ function makeFilterShader(renderer, operation, p5) {
150
156
  }, { p5 });
151
157
 
152
158
  case DILATE:
153
- return renderer.baseFilterShader().modify(() => {
159
+ return renderer.baseFilterShader().modify(({ p5 }) => {
154
160
  const luma = (color) => {
155
161
  return p5.dot(color.rgb, p5.vec3(0.2126, 0.7152, 0.0722));
156
162
  };
@@ -180,7 +186,7 @@ function makeFilterShader(renderer, operation, p5) {
180
186
  }, { p5 });
181
187
 
182
188
  case OPAQUE:
183
- return renderer.baseFilterShader().modify(() => {
189
+ return renderer.baseFilterShader().modify(({ p5 }) => {
184
190
  p5.getColor((inputs, canvasContent) => {
185
191
  const color = p5.getTexture(canvasContent, inputs.texCoord);
186
192
  return p5.vec4(color.rgb, 1.0);
@@ -1,6 +1,6 @@
1
1
  import { translator } from '../internationalization.js';
2
2
  import strings from './browser_errors.js';
3
- import { a3 as constants } from '../../constants-J9QlHaWW.js';
3
+ import { a3 as constants } from '../../constants-DAarZ_Jd.js';
4
4
  import 'i18next';
5
5
  import 'i18next-browser-languagedetector';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { translator } from '../internationalization.js';
2
2
  import 'i18next';
3
3
  import 'i18next-browser-languagedetector';
4
- import '../../constants-J9QlHaWW.js';
4
+ import '../../constants-DAarZ_Jd.js';
5
5
 
6
6
  /**
7
7
  * @for p5
@@ -6,7 +6,7 @@ import fileErrors from './file_errors.js';
6
6
  import '../internationalization.js';
7
7
  import 'i18next';
8
8
  import 'i18next-browser-languagedetector';
9
- import '../../constants-J9QlHaWW.js';
9
+ import '../../constants-DAarZ_Jd.js';
10
10
  import './browser_errors.js';
11
11
  import 'zod/v4';
12
12
  import 'acorn';
@@ -1,4 +1,4 @@
1
- import { a3 as constants } from '../../constants-J9QlHaWW.js';
1
+ import { a3 as constants } from '../../constants-DAarZ_Jd.js';
2
2
  import { z } from 'zod/v4';
3
3
 
4
4
  var p5$1 = {
@@ -1,6 +1,6 @@
1
1
  import { parse } from 'acorn';
2
2
  import { simple } from 'acorn-walk';
3
- import { a3 as constants } from '../../constants-J9QlHaWW.js';
3
+ import { a3 as constants } from '../../constants-DAarZ_Jd.js';
4
4
 
5
5
  // List of functions to ignore as they either are meant to be re-defined or
6
6
  // generate false positive outputs.
@@ -1,4 +1,4 @@
1
- import { p as CORNER, t as CORNERS, u as RADIUS, v as CENTER } from '../constants-J9QlHaWW.js';
1
+ import { p as CORNER, t as CORNERS, u as RADIUS, v as CENTER } from '../constants-DAarZ_Jd.js';
2
2
 
3
3
  /**
4
4
  * @requires constants
package/dist/core/init.js CHANGED
@@ -1,17 +1,17 @@
1
- import { p as p5 } from '../main-YIcP6qW5.js';
1
+ import { p as p5 } from '../main-CyTEP1c4.js';
2
2
  import { initialize } from './internationalization.js';
3
- import '../constants-J9QlHaWW.js';
3
+ import '../constants-DAarZ_Jd.js';
4
4
  import './transform.js';
5
5
  import './structure.js';
6
6
  import './environment.js';
7
- import '../rendering-IbeJmcSe.js';
7
+ import '../rendering-DPysJ2_4.js';
8
8
  import '../creating_reading-p2iQtNm5.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
11
11
  import '../dom/p5.Element.js';
12
12
  import '../dom/p5.File.js';
13
13
  import '../io/p5.XML.js';
14
- import '../p5.Renderer-CQfJjPpD.js';
14
+ import '../p5.Renderer-Ds3PCIgb.js';
15
15
  import '../image/filters.js';
16
16
  import '../math/p5.Vector.js';
17
17
  import '../shape/custom_shapes.js';
@@ -1,6 +1,6 @@
1
1
  import i18next from 'i18next';
2
2
  import LanguageDetector from 'i18next-browser-languagedetector';
3
- import { az as VERSION } from '../constants-J9QlHaWW.js';
3
+ import { az as VERSION } from '../constants-DAarZ_Jd.js';
4
4
 
5
5
  var fes = {
6
6
  autoplay: "The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy.\n\n+ More info: {{url}}",
@@ -1,16 +1,16 @@
1
- import { p as p5 } from '../main-YIcP6qW5.js';
2
- import '../constants-J9QlHaWW.js';
1
+ import { p as p5 } from '../main-CyTEP1c4.js';
2
+ import '../constants-DAarZ_Jd.js';
3
3
  import './transform.js';
4
4
  import './structure.js';
5
5
  import './environment.js';
6
- import '../rendering-IbeJmcSe.js';
6
+ import '../rendering-DPysJ2_4.js';
7
7
  import '../creating_reading-p2iQtNm5.js';
8
8
  import 'colorjs.io/fn';
9
9
  import '../color/color_spaces/hsb.js';
10
10
  import '../dom/p5.Element.js';
11
11
  import '../dom/p5.File.js';
12
12
  import '../io/p5.XML.js';
13
- import '../p5.Renderer-CQfJjPpD.js';
13
+ import '../p5.Renderer-Ds3PCIgb.js';
14
14
  import '../image/filters.js';
15
15
  import '../math/p5.Vector.js';
16
16
  import '../shape/custom_shapes.js';
package/dist/core/main.js CHANGED
@@ -1,10 +1,10 @@
1
- import '../constants-J9QlHaWW.js';
1
+ import '../constants-DAarZ_Jd.js';
2
2
  import './transform.js';
3
3
  import './structure.js';
4
4
  import './environment.js';
5
- import '../rendering-IbeJmcSe.js';
6
- import '../p5.Renderer-CQfJjPpD.js';
7
- export { p as default } from '../main-YIcP6qW5.js';
5
+ import '../rendering-DPysJ2_4.js';
6
+ import '../p5.Renderer-Ds3PCIgb.js';
7
+ export { p as default } from '../main-CyTEP1c4.js';
8
8
  import '../creating_reading-p2iQtNm5.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
@@ -1,10 +1,10 @@
1
- import '../constants-J9QlHaWW.js';
1
+ import '../constants-DAarZ_Jd.js';
2
2
  import '../shape/2d_primitives.js';
3
3
  import '../shape/attributes.js';
4
4
  import '../shape/curves.js';
5
5
  import '../shape/vertex.js';
6
6
  import '../color/setting.js';
7
- export { G as Graphics, n as default } from '../rendering-IbeJmcSe.js';
7
+ export { G as Graphics, n as default } from '../rendering-DPysJ2_4.js';
8
8
  import '../image/pixels.js';
9
9
  import './transform.js';
10
10
  import '../creating_reading-p2iQtNm5.js';
@@ -16,7 +16,7 @@ import '../color/color_spaces/hsb.js';
16
16
  import '../dom/p5.Element.js';
17
17
  import '../dom/p5.File.js';
18
18
  import '../io/p5.XML.js';
19
- import '../p5.Renderer-CQfJjPpD.js';
19
+ import '../p5.Renderer-Ds3PCIgb.js';
20
20
  import '../image/filters.js';
21
21
  import '../math/p5.Vector.js';
22
22
  import './States.js';
@@ -1,6 +1,6 @@
1
1
  import '../creating_reading-p2iQtNm5.js';
2
- import '../constants-J9QlHaWW.js';
3
- export { R as Renderer, r as default } from '../p5.Renderer-CQfJjPpD.js';
2
+ import '../constants-DAarZ_Jd.js';
3
+ export { R as Renderer, r as default } from '../p5.Renderer-Ds3PCIgb.js';
4
4
  import '../math/p5.Vector.js';
5
5
  import '../shape/custom_shapes.js';
6
6
  import './States.js';
@@ -1,7 +1,7 @@
1
- import '../constants-J9QlHaWW.js';
2
- export { R as Renderer2D, r as default } from '../main-YIcP6qW5.js';
3
- import '../p5.Renderer-CQfJjPpD.js';
4
- import '../rendering-IbeJmcSe.js';
1
+ import '../constants-DAarZ_Jd.js';
2
+ export { R as Renderer2D, r as default } from '../main-CyTEP1c4.js';
3
+ import '../p5.Renderer-Ds3PCIgb.js';
4
+ import '../rendering-DPysJ2_4.js';
5
5
  import '../dom/p5.Element.js';
6
6
  import '../dom/p5.MediaElement.js';
7
7
  import '../creating_reading-p2iQtNm5.js';
@@ -1,6 +1,6 @@
1
- import '../constants-J9QlHaWW.js';
2
- export { R as Renderer3D, r as default } from '../rendering-IbeJmcSe.js';
3
- import '../p5.Renderer-CQfJjPpD.js';
1
+ import '../constants-DAarZ_Jd.js';
2
+ export { R as Renderer3D, r as default } from '../rendering-DPysJ2_4.js';
3
+ import '../p5.Renderer-Ds3PCIgb.js';
4
4
  import '../webgl/GeometryBuilder.js';
5
5
  import '../math/p5.Matrix.js';
6
6
  import '../math/p5.Vector.js';
@@ -1,12 +1,12 @@
1
- import '../constants-J9QlHaWW.js';
2
- export { k as default, x as renderers } from '../rendering-IbeJmcSe.js';
1
+ import '../constants-DAarZ_Jd.js';
2
+ export { k as default, x as renderers } from '../rendering-DPysJ2_4.js';
3
3
  import '../creating_reading-p2iQtNm5.js';
4
4
  import 'colorjs.io/fn';
5
5
  import '../color/color_spaces/hsb.js';
6
6
  import '../dom/p5.Element.js';
7
7
  import '../dom/p5.File.js';
8
8
  import '../io/p5.XML.js';
9
- import '../p5.Renderer-CQfJjPpD.js';
9
+ import '../p5.Renderer-Ds3PCIgb.js';
10
10
  import '../image/filters.js';
11
11
  import '../math/p5.Vector.js';
12
12
  import '../shape/custom_shapes.js';
package/dist/dom/dom.js CHANGED
@@ -4,7 +4,7 @@ import { File } from './p5.File.js';
4
4
  import '../creating_reading-p2iQtNm5.js';
5
5
  import 'colorjs.io/fn';
6
6
  import '../color/color_spaces/hsb.js';
7
- import '../constants-J9QlHaWW.js';
7
+ import '../constants-DAarZ_Jd.js';
8
8
  import '../io/p5.XML.js';
9
9
 
10
10
  /**
package/dist/dom/index.js CHANGED
@@ -5,7 +5,7 @@ import file from './p5.File.js';
5
5
  import '../creating_reading-p2iQtNm5.js';
6
6
  import 'colorjs.io/fn';
7
7
  import '../color/color_spaces/hsb.js';
8
- import '../constants-J9QlHaWW.js';
8
+ import '../constants-DAarZ_Jd.js';
9
9
  import '../io/p5.XML.js';
10
10
 
11
11
  function dom(p5){
@@ -1,6 +1,6 @@
1
1
  import { File } from './p5.File.js';
2
2
  import { C as Color } from '../creating_reading-p2iQtNm5.js';
3
- import { a4 as AUTO } from '../constants-J9QlHaWW.js';
3
+ import { a4 as AUTO } from '../constants-DAarZ_Jd.js';
4
4
  import '../io/p5.XML.js';
5
5
  import 'colorjs.io/fn';
6
6
  import '../color/color_spaces/hsb.js';
@@ -4,7 +4,7 @@ import '../io/p5.XML.js';
4
4
  import '../creating_reading-p2iQtNm5.js';
5
5
  import 'colorjs.io/fn';
6
6
  import '../color/color_spaces/hsb.js';
7
- import '../constants-J9QlHaWW.js';
7
+ import '../constants-DAarZ_Jd.js';
8
8
 
9
9
  /**
10
10
  * @module DOM
@@ -1,4 +1,4 @@
1
- import { ae as THRESHOLD, af as POSTERIZE, ab as BLUR } from '../constants-J9QlHaWW.js';
1
+ import { ae as THRESHOLD, af as POSTERIZE, ab as BLUR } from '../constants-DAarZ_Jd.js';
2
2
 
3
3
  const filterParamDefaults = {
4
4
  [BLUR]: 3,
@@ -1,7 +1,7 @@
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-IbeJmcSe.js';
3
- import { I as Image } from '../p5.Renderer-CQfJjPpD.js';
4
- import { C as CLAMP, aa as WEBGL2, p as CORNER, B as BLEND, ab as BLUR, ac as WEBGL } from '../constants-J9QlHaWW.js';
2
+ import { s as setWebGLUniformValue, e as setWebGLTextureParams, g as getWebGLUniformMetadata, h as getWebGLShaderAttributes, j as populateGLSLHooks, T as Texture } from '../rendering-DPysJ2_4.js';
3
+ import { I as Image } from '../p5.Renderer-Ds3PCIgb.js';
4
+ import { C as CLAMP, aa as WEBGL2, p as CORNER, B as BLEND, ab as BLUR, ac as WEBGL } from '../constants-DAarZ_Jd.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-GXAPM_ZZ.js';
7
7
  import { glslBackend } from '../webgl/strands_glslBackend.js';
@@ -1,13 +1,13 @@
1
1
  import 'omggif';
2
2
  import '../dom/p5.Element.js';
3
- export { i as default } from '../rendering-IbeJmcSe.js';
3
+ export { i as default } from '../rendering-DPysJ2_4.js';
4
4
  import '../dom/p5.File.js';
5
5
  import '../io/p5.XML.js';
6
6
  import '../creating_reading-p2iQtNm5.js';
7
7
  import 'colorjs.io/fn';
8
8
  import '../color/color_spaces/hsb.js';
9
- import '../constants-J9QlHaWW.js';
10
- import '../p5.Renderer-CQfJjPpD.js';
9
+ import '../constants-DAarZ_Jd.js';
10
+ import '../p5.Renderer-Ds3PCIgb.js';
11
11
  import './filters.js';
12
12
  import '../math/p5.Vector.js';
13
13
  import '../shape/custom_shapes.js';
@@ -1,8 +1,8 @@
1
- import { i as image$1, b as loadingDisplaying, t as texture } from '../rendering-IbeJmcSe.js';
2
- import { i as image$2 } from '../p5.Renderer-CQfJjPpD.js';
1
+ import { i as image$1, b as loadingDisplaying, t as texture } from '../rendering-DPysJ2_4.js';
2
+ import { i as image$2 } from '../p5.Renderer-Ds3PCIgb.js';
3
3
  import pixels from './pixels.js';
4
4
  import shader from '../webgl/p5.Shader.js';
5
- import '../constants-J9QlHaWW.js';
5
+ import '../constants-DAarZ_Jd.js';
6
6
  import '../creating_reading-p2iQtNm5.js';
7
7
  import 'colorjs.io/fn';
8
8
  import '../color/color_spaces/hsb.js';
@@ -1,6 +1,6 @@
1
1
  import '../core/helpers.js';
2
- import '../constants-J9QlHaWW.js';
3
- export { b as default } from '../rendering-IbeJmcSe.js';
2
+ import '../constants-DAarZ_Jd.js';
3
+ export { b as default } from '../rendering-DPysJ2_4.js';
4
4
  import 'omggif';
5
5
  import 'gifenc';
6
6
  import '../creating_reading-p2iQtNm5.js';
@@ -9,7 +9,7 @@ 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-CQfJjPpD.js';
12
+ import '../p5.Renderer-Ds3PCIgb.js';
13
13
  import './filters.js';
14
14
  import '../math/p5.Vector.js';
15
15
  import '../shape/custom_shapes.js';
@@ -1,10 +1,10 @@
1
1
  import './filters.js';
2
- export { I as Image, i as default } from '../p5.Renderer-CQfJjPpD.js';
2
+ export { I as Image, i as default } from '../p5.Renderer-Ds3PCIgb.js';
3
3
  import '../io/utilities.js';
4
4
  import '../creating_reading-p2iQtNm5.js';
5
5
  import 'colorjs.io/fn';
6
6
  import '../color/color_spaces/hsb.js';
7
- import '../constants-J9QlHaWW.js';
7
+ import '../constants-DAarZ_Jd.js';
8
8
  import '../math/p5.Vector.js';
9
9
  import '../shape/custom_shapes.js';
10
10
  import '../core/States.js';
package/dist/io/files.js CHANGED
@@ -1,11 +1,11 @@
1
- import '../p5.Renderer-CQfJjPpD.js';
2
- export { d as default, a as request } from '../rendering-IbeJmcSe.js';
1
+ import '../p5.Renderer-Ds3PCIgb.js';
2
+ export { d as default, a as request } from '../rendering-DPysJ2_4.js';
3
3
  import './csv.js';
4
4
  import './utilities.js';
5
5
  import '../creating_reading-p2iQtNm5.js';
6
6
  import 'colorjs.io/fn';
7
7
  import '../color/color_spaces/hsb.js';
8
- import '../constants-J9QlHaWW.js';
8
+ import '../constants-DAarZ_Jd.js';
9
9
  import '../image/filters.js';
10
10
  import '../math/p5.Vector.js';
11
11
  import '../shape/custom_shapes.js';
package/dist/io/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { d as files } from '../rendering-IbeJmcSe.js';
1
+ import { d as files } from '../rendering-DPysJ2_4.js';
2
2
  import table from './p5.Table.js';
3
3
  import tableRow from './p5.TableRow.js';
4
4
  import xml from './p5.XML.js';
5
- import '../constants-J9QlHaWW.js';
5
+ import '../constants-DAarZ_Jd.js';
6
6
  import '../creating_reading-p2iQtNm5.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
- import '../p5.Renderer-CQfJjPpD.js';
11
+ import '../p5.Renderer-Ds3PCIgb.js';
12
12
  import '../image/filters.js';
13
13
  import '../math/p5.Vector.js';
14
14
  import '../shape/custom_shapes.js';
@@ -1,9 +1,9 @@
1
- import { P as P2D, ac as WEBGL, B as BLEND, al as _DEFAULT_FILL, am as _DEFAULT_STROKE, w as ROUND, b as REMOVE, S as SUBTRACT, D as DARKEST, L as LIGHTEST, an as DIFFERENCE, M as MULTIPLY, E as EXCLUSION, a as SCREEN, R as REPLACE, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, as as BURN, A as ADD, at as PIE, au as CHORD, q as TWO_PI, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER, a9 as RIGHT, v as CENTER, av as LEFT, aw as BOTTOM, ax as BASELINE, ay as TOP, Q as OPEN, az as VERSION, a3 as constants } from './constants-J9QlHaWW.js';
1
+ import { P as P2D, ac as WEBGL, B as BLEND, al as _DEFAULT_FILL, am as _DEFAULT_STROKE, w as ROUND, b as REMOVE, S as SUBTRACT, D as DARKEST, L as LIGHTEST, an as DIFFERENCE, M as MULTIPLY, E as EXCLUSION, a as SCREEN, R as REPLACE, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, as as BURN, A as ADD, at as PIE, au as CHORD, q as TWO_PI, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER, a9 as RIGHT, v as CENTER, av as LEFT, aw as BOTTOM, ax as BASELINE, ay as TOP, Q as OPEN, az as VERSION, a3 as constants } from './constants-DAarZ_Jd.js';
2
2
  import transform from './core/transform.js';
3
3
  import structure from './core/structure.js';
4
4
  import environment from './core/environment.js';
5
- import { G as Graphics, k as rendering, n as graphics } from './rendering-IbeJmcSe.js';
6
- import { R as Renderer, I as Image, r as renderer } from './p5.Renderer-CQfJjPpD.js';
5
+ import { G as Graphics, k as rendering, n as graphics } from './rendering-DPysJ2_4.js';
6
+ import { R as Renderer, I as Image, r as renderer } from './p5.Renderer-Ds3PCIgb.js';
7
7
  import { Element } from './dom/p5.Element.js';
8
8
  import { MediaElement } from './dom/p5.MediaElement.js';
9
9
  import { b as RGBHDR } from './creating_reading-p2iQtNm5.js';
@@ -1,6 +1,6 @@
1
1
  import { Vector } from '../p5.Vector.js';
2
2
  import { MatrixInterface } from './MatrixInterface.js';
3
- import '../../constants-J9QlHaWW.js';
3
+ import '../../constants-DAarZ_Jd.js';
4
4
 
5
5
  /**
6
6
  * @module Math