p5 2.3.0-rc.3 → 2.3.0-rc.5
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/dist/accessibility/color_namer.js +5 -5
- package/dist/accessibility/index.js +5 -5
- package/dist/app.js +5 -5
- package/dist/app.node.js +5 -5
- package/dist/color/color_conversion.js +5 -5
- package/dist/color/index.js +1 -1
- package/dist/color/setting.js +1 -1
- package/dist/{constants-D_vkjx8K.js → constants-CdA3y5zC.js} +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +1 -1
- package/dist/core/filterShaders.js +1 -1
- package/dist/core/friendly_errors/fes_core.js +1 -1
- package/dist/core/friendly_errors/file_errors.js +1 -1
- package/dist/core/friendly_errors/index.js +1 -1
- package/dist/core/friendly_errors/param_validator.js +4 -1
- package/dist/core/friendly_errors/sketch_verifier.js +1 -1
- package/dist/core/helpers.js +1 -1
- package/dist/core/init.js +5 -5
- package/dist/core/internationalization.js +1 -1
- package/dist/core/legacy.js +5 -5
- package/dist/core/main.js +5 -5
- package/dist/core/p5.Graphics.js +3 -3
- package/dist/core/p5.Renderer.js +2 -2
- package/dist/core/p5.Renderer2D.js +5 -5
- package/dist/core/p5.Renderer3D.js +3 -3
- package/dist/core/rendering.js +3 -3
- package/dist/dom/dom.js +1 -1
- package/dist/dom/index.js +1 -1
- package/dist/dom/p5.Element.js +1 -1
- package/dist/dom/p5.MediaElement.js +1 -1
- package/dist/image/const.js +1 -1
- package/dist/image/filterRenderer2D.js +6 -5
- package/dist/image/image.js +3 -3
- package/dist/image/index.js +3 -3
- package/dist/image/loading_displaying.js +3 -3
- package/dist/image/p5.Image.js +2 -2
- package/dist/io/files.js +3 -3
- package/dist/io/index.js +3 -3
- package/dist/{main-YeKU8X7G.js → main-BNYJV9Kd.js} +3 -3
- package/dist/math/Matrices/Matrix.js +1 -1
- package/dist/math/Matrices/MatrixNumjs.js +1 -1
- package/dist/math/index.js +1 -1
- package/dist/math/math.js +9 -1
- package/dist/math/noise.js +48 -12
- package/dist/math/p5.Matrix.js +1 -1
- package/dist/math/p5.Vector.js +106 -88
- package/dist/math/patch-vector.js +15 -7
- package/dist/math/random.js +46 -11
- package/dist/math/trigonometry.js +1 -1
- package/dist/{p5.Renderer-DDwc_8wM.js → p5.Renderer-BfhR0QHl.js} +1 -1
- package/dist/{rendering-Bvwg6EYn.js → rendering-mbOOQwHM.js} +12 -4
- package/dist/shape/2d_primitives.js +1 -1
- package/dist/shape/attributes.js +1 -1
- package/dist/shape/custom_shapes.js +1 -1
- package/dist/shape/index.js +1 -1
- package/dist/strands/ir_types.js +2 -1
- package/dist/strands/p5.strands.js +134 -0
- package/dist/strands/strands_api.js +5 -5
- package/dist/{strands_glslBackend-B0RPC6_H.js → strands_glslBackend-D6G3UyCs.js} +2 -2
- package/dist/type/index.js +2 -2
- package/dist/type/p5.Font.js +2 -2
- package/dist/type/textCore.js +2 -2
- package/dist/utilities/time_date.js +41 -6
- package/dist/webgl/3d_primitives.js +3 -3
- package/dist/webgl/GeometryBuilder.js +16 -10
- package/dist/webgl/ShapeBuilder.js +1 -1
- package/dist/webgl/enums.js +1 -1
- package/dist/webgl/index.js +4 -4
- package/dist/webgl/interaction.js +1 -1
- package/dist/webgl/light.js +3 -3
- package/dist/webgl/loading.js +3 -3
- package/dist/webgl/material.js +3 -3
- package/dist/webgl/p5.Camera.js +3 -3
- package/dist/webgl/p5.Framebuffer.js +3 -3
- package/dist/webgl/p5.Geometry.js +1 -1
- package/dist/webgl/p5.Quat.js +1 -1
- package/dist/webgl/p5.RendererGL.js +4 -4
- package/dist/webgl/p5.Texture.js +3 -3
- package/dist/webgl/strands_glslBackend.js +1 -1
- package/dist/webgl/text.js +3 -3
- package/dist/webgl/utils.js +3 -3
- package/dist/webgpu/index.js +1 -1
- package/dist/webgpu/p5.RendererWebGPU.js +1 -1
- package/dist/webgpu/strands_wgslBackend.js +4 -4
- package/lib/p5.esm.js +435 -142
- package/lib/p5.esm.min.js +1 -1
- package/lib/p5.js +435 -142
- package/lib/p5.min.js +1 -1
- package/lib/p5.webgpu.esm.js +5 -4
- package/lib/p5.webgpu.js +5 -4
- package/lib/p5.webgpu.min.js +1 -1
- package/package.json +1 -1
- package/types/global.d.ts +1468 -629
- package/types/p5.d.ts +684 -268
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import color_conversion from '../color/color_conversion.js';
|
|
2
|
-
import '../main-
|
|
3
|
-
import '../constants-
|
|
2
|
+
import '../main-BNYJV9Kd.js';
|
|
3
|
+
import '../constants-CdA3y5zC.js';
|
|
4
4
|
import '../core/transform.js';
|
|
5
5
|
import '../core/structure.js';
|
|
6
6
|
import '../core/environment.js';
|
|
7
|
-
import '../rendering-
|
|
7
|
+
import '../rendering-mbOOQwHM.js';
|
|
8
8
|
import '../creating_reading-DLkHH80h.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
@@ -12,7 +12,7 @@ import '../strands/ir_types.js';
|
|
|
12
12
|
import '../dom/p5.Element.js';
|
|
13
13
|
import '../dom/p5.File.js';
|
|
14
14
|
import '../io/p5.XML.js';
|
|
15
|
-
import '../p5.Renderer-
|
|
15
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
16
16
|
import '../image/filters.js';
|
|
17
17
|
import '../math/p5.Vector.js';
|
|
18
18
|
import '../shape/custom_shapes.js';
|
|
@@ -47,7 +47,7 @@ import '../webgl/p5.Shader.js';
|
|
|
47
47
|
import '../math/trigonometry.js';
|
|
48
48
|
import '../image/filterRenderer2D.js';
|
|
49
49
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
50
|
-
import '../strands_glslBackend-
|
|
50
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
51
51
|
import '../strands/ir_dag.js';
|
|
52
52
|
import '../strands/strands_FES.js';
|
|
53
53
|
import '../ir_builders-C8mrXj5z.js';
|
|
@@ -4,12 +4,12 @@ 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-
|
|
8
|
-
import '../constants-
|
|
7
|
+
import '../main-BNYJV9Kd.js';
|
|
8
|
+
import '../constants-CdA3y5zC.js';
|
|
9
9
|
import '../core/transform.js';
|
|
10
10
|
import '../core/structure.js';
|
|
11
11
|
import '../core/environment.js';
|
|
12
|
-
import '../rendering-
|
|
12
|
+
import '../rendering-mbOOQwHM.js';
|
|
13
13
|
import '../creating_reading-DLkHH80h.js';
|
|
14
14
|
import 'colorjs.io/fn';
|
|
15
15
|
import '../color/color_spaces/hsb.js';
|
|
@@ -17,7 +17,7 @@ import '../strands/ir_types.js';
|
|
|
17
17
|
import '../dom/p5.Element.js';
|
|
18
18
|
import '../dom/p5.File.js';
|
|
19
19
|
import '../io/p5.XML.js';
|
|
20
|
-
import '../p5.Renderer-
|
|
20
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
21
21
|
import '../image/filters.js';
|
|
22
22
|
import '../math/p5.Vector.js';
|
|
23
23
|
import '../shape/custom_shapes.js';
|
|
@@ -52,7 +52,7 @@ import '../webgl/p5.Shader.js';
|
|
|
52
52
|
import '../math/trigonometry.js';
|
|
53
53
|
import '../image/filterRenderer2D.js';
|
|
54
54
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
55
|
-
import '../strands_glslBackend-
|
|
55
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
56
56
|
import '../strands/ir_dag.js';
|
|
57
57
|
import '../strands/strands_FES.js';
|
|
58
58
|
import '../ir_builders-C8mrXj5z.js';
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as p5 } from './main-
|
|
1
|
+
import { p as p5 } from './main-BNYJV9Kd.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,11 +15,11 @@ 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-
|
|
18
|
+
import './constants-CdA3y5zC.js';
|
|
19
19
|
import './core/transform.js';
|
|
20
20
|
import './core/structure.js';
|
|
21
21
|
import './core/environment.js';
|
|
22
|
-
import './rendering-
|
|
22
|
+
import './rendering-mbOOQwHM.js';
|
|
23
23
|
import './creating_reading-DLkHH80h.js';
|
|
24
24
|
import 'colorjs.io/fn';
|
|
25
25
|
import './color/color_spaces/hsb.js';
|
|
@@ -27,7 +27,7 @@ import './strands/ir_types.js';
|
|
|
27
27
|
import './dom/p5.Element.js';
|
|
28
28
|
import './dom/p5.File.js';
|
|
29
29
|
import './io/p5.XML.js';
|
|
30
|
-
import './p5.Renderer-
|
|
30
|
+
import './p5.Renderer-BfhR0QHl.js';
|
|
31
31
|
import './image/filters.js';
|
|
32
32
|
import './math/p5.Vector.js';
|
|
33
33
|
import './shape/custom_shapes.js';
|
|
@@ -61,7 +61,7 @@ import './webgl/enums.js';
|
|
|
61
61
|
import './math/trigonometry.js';
|
|
62
62
|
import './image/filterRenderer2D.js';
|
|
63
63
|
import './webgl2Compatibility-DA7DLMuq.js';
|
|
64
|
-
import './strands_glslBackend-
|
|
64
|
+
import './strands_glslBackend-D6G3UyCs.js';
|
|
65
65
|
import './strands/ir_dag.js';
|
|
66
66
|
import './strands/strands_FES.js';
|
|
67
67
|
import './ir_builders-C8mrXj5z.js';
|
package/dist/app.node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as p5 } from './main-
|
|
1
|
+
import { p as p5 } from './main-BNYJV9Kd.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';
|
|
@@ -12,11 +12,11 @@ import webgl from './webgl/index.js';
|
|
|
12
12
|
import type from './type/index.js';
|
|
13
13
|
import shader from './webgl/p5.Shader.js';
|
|
14
14
|
import strands from './strands/p5.strands.js';
|
|
15
|
-
import './constants-
|
|
15
|
+
import './constants-CdA3y5zC.js';
|
|
16
16
|
import './core/transform.js';
|
|
17
17
|
import './core/structure.js';
|
|
18
18
|
import './core/environment.js';
|
|
19
|
-
import './rendering-
|
|
19
|
+
import './rendering-mbOOQwHM.js';
|
|
20
20
|
import './creating_reading-DLkHH80h.js';
|
|
21
21
|
import 'colorjs.io/fn';
|
|
22
22
|
import './color/color_spaces/hsb.js';
|
|
@@ -24,7 +24,7 @@ import './strands/ir_types.js';
|
|
|
24
24
|
import './dom/p5.Element.js';
|
|
25
25
|
import './dom/p5.File.js';
|
|
26
26
|
import './io/p5.XML.js';
|
|
27
|
-
import './p5.Renderer-
|
|
27
|
+
import './p5.Renderer-BfhR0QHl.js';
|
|
28
28
|
import './image/filters.js';
|
|
29
29
|
import './math/p5.Vector.js';
|
|
30
30
|
import './shape/custom_shapes.js';
|
|
@@ -58,7 +58,7 @@ import './webgl/enums.js';
|
|
|
58
58
|
import './math/trigonometry.js';
|
|
59
59
|
import './image/filterRenderer2D.js';
|
|
60
60
|
import './webgl2Compatibility-DA7DLMuq.js';
|
|
61
|
-
import './strands_glslBackend-
|
|
61
|
+
import './strands_glslBackend-D6G3UyCs.js';
|
|
62
62
|
import './strands/ir_dag.js';
|
|
63
63
|
import './strands/strands_FES.js';
|
|
64
64
|
import './ir_builders-C8mrXj5z.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
2
|
-
import '../constants-
|
|
1
|
+
import { p as p5 } from '../main-BNYJV9Kd.js';
|
|
2
|
+
import '../constants-CdA3y5zC.js';
|
|
3
3
|
import '../core/transform.js';
|
|
4
4
|
import '../core/structure.js';
|
|
5
5
|
import '../core/environment.js';
|
|
6
|
-
import '../rendering-
|
|
6
|
+
import '../rendering-mbOOQwHM.js';
|
|
7
7
|
import '../creating_reading-DLkHH80h.js';
|
|
8
8
|
import 'colorjs.io/fn';
|
|
9
9
|
import './color_spaces/hsb.js';
|
|
@@ -11,7 +11,7 @@ import '../strands/ir_types.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-
|
|
14
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../math/p5.Vector.js';
|
|
17
17
|
import '../shape/custom_shapes.js';
|
|
@@ -46,7 +46,7 @@ import '../webgl/p5.Shader.js';
|
|
|
46
46
|
import '../math/trigonometry.js';
|
|
47
47
|
import '../image/filterRenderer2D.js';
|
|
48
48
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
49
|
-
import '../strands_glslBackend-
|
|
49
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
50
50
|
import '../strands/ir_dag.js';
|
|
51
51
|
import '../strands/strands_FES.js';
|
|
52
52
|
import '../ir_builders-C8mrXj5z.js';
|
package/dist/color/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { c as creatingReading, a as color$1 } from '../creating_reading-DLkHH80h
|
|
|
2
2
|
import setting from './setting.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import './color_spaces/hsb.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-CdA3y5zC.js';
|
|
6
6
|
|
|
7
7
|
function color(p5){
|
|
8
8
|
p5.registerAddon(creatingReading);
|
package/dist/color/setting.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as NORMAL, B as BLEND } from '../constants-
|
|
1
|
+
import { a1 as NORMAL, B as BLEND } from '../constants-CdA3y5zC.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-DLkHH80h.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import './color_spaces/hsb.js';
|
package/dist/core/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ADD, aN as ALT, h as ARROW, a2 as AUTO, a6 as AXES, aO as BACKSPACE, ax as BASELINE, x as BEVEL, b7 as BEZIER, B as BLEND, ac as BLUR, b0 as BOLD, b1 as BOLDITALIC, aw as BOTTOM, au as BURN, t as CENTER, b2 as CHAR, $ as CHORD, C as CLAMP, J as CLOSE, aC as CONTAIN, aP as CONTROL, n as CORNER, r as CORNERS, aB as COVER, i as CROSS, b8 as CURVE, D as DARKEST, a4 as DEG_TO_RAD, aQ as DELETE, ap as DIFFERENCE, ai as DILATE, at as DODGE, aR as DOWN_ARROW, G as EMPTY_PATH, aS as ENTER, aj as ERODE, aT as ESCAPE, Z as EXCLUDE, E as EXCLUSION, be as FALLBACK, aD as FILL, a8 as FLAT, F as FLOAT, aF as FULL, al as GRAY, a5 as GRID, H as HALF_FLOAT, p as HALF_PI, j as HAND, ar as HARD_LIGHT, ae as IMAGE, ba as IMMEDIATE, I as INCLUDE, ak as INVERT, a$ as ITALIC, _ 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, Q as LINES, aL as LINE_LOOP, aK as LINE_STRIP, e as MIRROR, y as MITER, k as MOVE, M as MULTIPLY, N as NEAREST, a1 as NORMAL, ah as OPAQUE, O as OPEN, aV as OPTION, aq as OVERLAY, P as P2D, aH as P2DHDR, z as PATH, q as PI, a0 as PIE, K as POINTS, bc as PORTRAIT, ag as POSTERIZE, w as PROJECT, b6 as QUADRATIC, V as QUADS, Y as QUAD_STRIP, aI as QUARTER_PI, s as RADIUS, a3 as RAD_TO_DEG, b as REMOVE, f as REPEAT, R as REPLACE, aW as RETURN, aa as RIGHT, aX as RIGHT_ARROW, u as ROUND, a as SCREEN, aY as SHIFT, aE as SIMPLE, a9 as SMOOTH, as as SOFT_LIGHT, v as SQUARE, b9 as STROKE, S as SUBTRACT, aZ as TAB, aJ as TAU, aM as TESS, l as TEXT, a7 as TEXTURE, af as THRESHOLD, ay as TOP, c as TRIANGLES, X as TRIANGLE_FAN, T as TRIANGLE_STRIP, o as TWO_PI, U as UNSIGNED_BYTE, d as UNSIGNED_INT, a_ as UP_ARROW, az as VERSION, m as WAIT, ad as WEBGL, ab as WEBGL2, W as WEBGPU, aA as WORD, b5 as _CTX_MIDDLE, an as _DEFAULT_FILL, b4 as _DEFAULT_LEADMULT, ao as _DEFAULT_STROKE, b3 as _DEFAULT_TEXT_FILL } from '../constants-
|
|
1
|
+
export { A as ADD, aN as ALT, h as ARROW, a2 as AUTO, a6 as AXES, aO as BACKSPACE, ax as BASELINE, x as BEVEL, b7 as BEZIER, B as BLEND, ac as BLUR, b0 as BOLD, b1 as BOLDITALIC, aw as BOTTOM, au as BURN, t as CENTER, b2 as CHAR, $ as CHORD, C as CLAMP, J as CLOSE, aC as CONTAIN, aP as CONTROL, n as CORNER, r as CORNERS, aB as COVER, i as CROSS, b8 as CURVE, D as DARKEST, a4 as DEG_TO_RAD, aQ as DELETE, ap as DIFFERENCE, ai as DILATE, at as DODGE, aR as DOWN_ARROW, G as EMPTY_PATH, aS as ENTER, aj as ERODE, aT as ESCAPE, Z as EXCLUDE, E as EXCLUSION, be as FALLBACK, aD as FILL, a8 as FLAT, F as FLOAT, aF as FULL, al as GRAY, a5 as GRID, H as HALF_FLOAT, p as HALF_PI, j as HAND, ar as HARD_LIGHT, ae as IMAGE, ba as IMMEDIATE, I as INCLUDE, ak as INVERT, a$ as ITALIC, _ 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, Q as LINES, aL as LINE_LOOP, aK as LINE_STRIP, e as MIRROR, y as MITER, k as MOVE, M as MULTIPLY, N as NEAREST, a1 as NORMAL, ah as OPAQUE, O as OPEN, aV as OPTION, aq as OVERLAY, P as P2D, aH as P2DHDR, z as PATH, q as PI, a0 as PIE, K as POINTS, bc as PORTRAIT, ag as POSTERIZE, w as PROJECT, b6 as QUADRATIC, V as QUADS, Y as QUAD_STRIP, aI as QUARTER_PI, s as RADIUS, a3 as RAD_TO_DEG, b as REMOVE, f as REPEAT, R as REPLACE, aW as RETURN, aa as RIGHT, aX as RIGHT_ARROW, u as ROUND, a as SCREEN, aY as SHIFT, aE as SIMPLE, a9 as SMOOTH, as as SOFT_LIGHT, v as SQUARE, b9 as STROKE, S as SUBTRACT, aZ as TAB, aJ as TAU, aM as TESS, l as TEXT, a7 as TEXTURE, af as THRESHOLD, ay as TOP, c as TRIANGLES, X as TRIANGLE_FAN, T as TRIANGLE_STRIP, o as TWO_PI, U as UNSIGNED_BYTE, d as UNSIGNED_INT, a_ as UP_ARROW, az as VERSION, m as WAIT, ad as WEBGL, ab as WEBGL2, W as WEBGPU, aA as WORD, b5 as _CTX_MIDDLE, an as _DEFAULT_FILL, b4 as _DEFAULT_LEADMULT, ao as _DEFAULT_STROKE, b3 as _DEFAULT_TEXT_FILL } from '../constants-CdA3y5zC.js';
|
package/dist/core/environment.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as ARROW, i as CROSS, j as HAND, k as MOVE, l as TEXT, m as WAIT, P as P2D } from '../constants-
|
|
1
|
+
import { h as ARROW, i as CROSS, j as HAND, k as MOVE, l as TEXT, m as WAIT, P as P2D } from '../constants-CdA3y5zC.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Environment
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ah as OPAQUE, ai as DILATE, aj as ERODE, ac as BLUR, ag as POSTERIZE, af as THRESHOLD, ak as INVERT, al as GRAY } from '../constants-
|
|
1
|
+
import { ah as OPAQUE, ai as DILATE, aj as ERODE, ac as BLUR, ag as POSTERIZE, af as THRESHOLD, ak as INVERT, al as GRAY } from '../constants-CdA3y5zC.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Creates p5.strands filter shaders for cross-platform compatibility.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { translator } from '../internationalization.js';
|
|
2
2
|
import strings from './browser_errors.js';
|
|
3
|
-
import { am as constants } from '../../constants-
|
|
3
|
+
import { am as constants } from '../../constants-CdA3y5zC.js';
|
|
4
4
|
import 'i18next';
|
|
5
5
|
import 'i18next-browser-languagedetector';
|
|
6
6
|
|
|
@@ -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-
|
|
9
|
+
import '../../constants-CdA3y5zC.js';
|
|
10
10
|
import './browser_errors.js';
|
|
11
11
|
import 'zod/v4';
|
|
12
12
|
import 'acorn';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { am as constants } from '../../constants-
|
|
1
|
+
import { am as constants } from '../../constants-CdA3y5zC.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
var p5$1 = {
|
|
@@ -5606,6 +5606,9 @@ function validateParams(p5, fn, lifecycles) {
|
|
|
5606
5606
|
function(target, { kind, name }){
|
|
5607
5607
|
if(kind === 'method'){
|
|
5608
5608
|
return function(...args){
|
|
5609
|
+
if (p5.disableFriendlyErrors) {
|
|
5610
|
+
return target.apply(this, args);
|
|
5611
|
+
}
|
|
5609
5612
|
const wasInternalCall = this._isUserCall;
|
|
5610
5613
|
this._isUserCall = true;
|
|
5611
5614
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parse } from 'acorn';
|
|
2
2
|
import { simple } from 'acorn-walk';
|
|
3
|
-
import { am as constants } from '../../constants-
|
|
3
|
+
import { am as constants } from '../../constants-CdA3y5zC.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.
|
package/dist/core/helpers.js
CHANGED
package/dist/core/init.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
1
|
+
import { p as p5 } from '../main-BNYJV9Kd.js';
|
|
2
2
|
import { initialize } from './internationalization.js';
|
|
3
|
-
import '../constants-
|
|
3
|
+
import '../constants-CdA3y5zC.js';
|
|
4
4
|
import './transform.js';
|
|
5
5
|
import './structure.js';
|
|
6
6
|
import './environment.js';
|
|
7
|
-
import '../rendering-
|
|
7
|
+
import '../rendering-mbOOQwHM.js';
|
|
8
8
|
import '../creating_reading-DLkHH80h.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
@@ -12,7 +12,7 @@ import '../strands/ir_types.js';
|
|
|
12
12
|
import '../dom/p5.Element.js';
|
|
13
13
|
import '../dom/p5.File.js';
|
|
14
14
|
import '../io/p5.XML.js';
|
|
15
|
-
import '../p5.Renderer-
|
|
15
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
16
16
|
import '../image/filters.js';
|
|
17
17
|
import '../math/p5.Vector.js';
|
|
18
18
|
import '../shape/custom_shapes.js';
|
|
@@ -47,7 +47,7 @@ import '../webgl/p5.Shader.js';
|
|
|
47
47
|
import '../math/trigonometry.js';
|
|
48
48
|
import '../image/filterRenderer2D.js';
|
|
49
49
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
50
|
-
import '../strands_glslBackend-
|
|
50
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
51
51
|
import '../strands/ir_dag.js';
|
|
52
52
|
import '../strands/strands_FES.js';
|
|
53
53
|
import '../ir_builders-C8mrXj5z.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-
|
|
3
|
+
import { az as VERSION } from '../constants-CdA3y5zC.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}}",
|
package/dist/core/legacy.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
2
|
-
import '../constants-
|
|
1
|
+
import { p as p5 } from '../main-BNYJV9Kd.js';
|
|
2
|
+
import '../constants-CdA3y5zC.js';
|
|
3
3
|
import './transform.js';
|
|
4
4
|
import './structure.js';
|
|
5
5
|
import './environment.js';
|
|
6
|
-
import '../rendering-
|
|
6
|
+
import '../rendering-mbOOQwHM.js';
|
|
7
7
|
import '../creating_reading-DLkHH80h.js';
|
|
8
8
|
import 'colorjs.io/fn';
|
|
9
9
|
import '../color/color_spaces/hsb.js';
|
|
@@ -11,7 +11,7 @@ import '../strands/ir_types.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-
|
|
14
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../math/p5.Vector.js';
|
|
17
17
|
import '../shape/custom_shapes.js';
|
|
@@ -46,7 +46,7 @@ import '../webgl/p5.Shader.js';
|
|
|
46
46
|
import '../math/trigonometry.js';
|
|
47
47
|
import '../image/filterRenderer2D.js';
|
|
48
48
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
49
|
-
import '../strands_glslBackend-
|
|
49
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
50
50
|
import '../strands/ir_dag.js';
|
|
51
51
|
import '../strands/strands_FES.js';
|
|
52
52
|
import '../ir_builders-C8mrXj5z.js';
|
package/dist/core/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-CdA3y5zC.js';
|
|
2
2
|
import './transform.js';
|
|
3
3
|
import './structure.js';
|
|
4
4
|
import './environment.js';
|
|
5
|
-
import '../rendering-
|
|
6
|
-
import '../p5.Renderer-
|
|
7
|
-
export { p as default } from '../main-
|
|
5
|
+
import '../rendering-mbOOQwHM.js';
|
|
6
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
7
|
+
export { p as default } from '../main-BNYJV9Kd.js';
|
|
8
8
|
import '../creating_reading-DLkHH80h.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
@@ -46,7 +46,7 @@ import '../webgl/p5.Shader.js';
|
|
|
46
46
|
import '../math/trigonometry.js';
|
|
47
47
|
import '../image/filterRenderer2D.js';
|
|
48
48
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
49
|
-
import '../strands_glslBackend-
|
|
49
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
50
50
|
import '../strands/ir_dag.js';
|
|
51
51
|
import '../strands/strands_FES.js';
|
|
52
52
|
import '../ir_builders-C8mrXj5z.js';
|
package/dist/core/p5.Graphics.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-CdA3y5zC.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-
|
|
7
|
+
export { G as Graphics, n as default } from '../rendering-mbOOQwHM.js';
|
|
8
8
|
import '../image/pixels.js';
|
|
9
9
|
import './transform.js';
|
|
10
10
|
import '../creating_reading-DLkHH80h.js';
|
|
@@ -17,7 +17,7 @@ import '../strands/ir_types.js';
|
|
|
17
17
|
import '../dom/p5.Element.js';
|
|
18
18
|
import '../dom/p5.File.js';
|
|
19
19
|
import '../io/p5.XML.js';
|
|
20
|
-
import '../p5.Renderer-
|
|
20
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
21
21
|
import '../image/filters.js';
|
|
22
22
|
import '../math/p5.Vector.js';
|
|
23
23
|
import './States.js';
|
package/dist/core/p5.Renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../creating_reading-DLkHH80h.js';
|
|
2
|
-
import '../constants-
|
|
3
|
-
export { R as Renderer, r as default } from '../p5.Renderer-
|
|
2
|
+
import '../constants-CdA3y5zC.js';
|
|
3
|
+
export { R as Renderer, r as default } from '../p5.Renderer-BfhR0QHl.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-
|
|
2
|
-
export { R as Renderer2D, r as default } from '../main-
|
|
3
|
-
import '../p5.Renderer-
|
|
4
|
-
import '../rendering-
|
|
1
|
+
import '../constants-CdA3y5zC.js';
|
|
2
|
+
export { R as Renderer2D, r as default } from '../main-BNYJV9Kd.js';
|
|
3
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
4
|
+
import '../rendering-mbOOQwHM.js';
|
|
5
5
|
import '../dom/p5.Element.js';
|
|
6
6
|
import '../dom/p5.MediaElement.js';
|
|
7
7
|
import '../creating_reading-DLkHH80h.js';
|
|
@@ -46,7 +46,7 @@ import '../math/trigonometry.js';
|
|
|
46
46
|
import '../dom/p5.File.js';
|
|
47
47
|
import '../io/p5.XML.js';
|
|
48
48
|
import '../webgl2Compatibility-DA7DLMuq.js';
|
|
49
|
-
import '../strands_glslBackend-
|
|
49
|
+
import '../strands_glslBackend-D6G3UyCs.js';
|
|
50
50
|
import '../strands/ir_dag.js';
|
|
51
51
|
import '../strands/strands_FES.js';
|
|
52
52
|
import '../ir_builders-C8mrXj5z.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { R as Renderer3D, r as default } from '../rendering-
|
|
3
|
-
import '../p5.Renderer-
|
|
1
|
+
import '../constants-CdA3y5zC.js';
|
|
2
|
+
export { R as Renderer3D, r as default } from '../rendering-mbOOQwHM.js';
|
|
3
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
4
4
|
import '../webgl/GeometryBuilder.js';
|
|
5
5
|
import '../math/p5.Matrix.js';
|
|
6
6
|
import '../math/p5.Vector.js';
|
package/dist/core/rendering.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { k as default, x as renderers } from '../rendering-
|
|
1
|
+
import '../constants-CdA3y5zC.js';
|
|
2
|
+
export { k as default, x as renderers } from '../rendering-mbOOQwHM.js';
|
|
3
3
|
import '../creating_reading-DLkHH80h.js';
|
|
4
4
|
import 'colorjs.io/fn';
|
|
5
5
|
import '../color/color_spaces/hsb.js';
|
|
@@ -7,7 +7,7 @@ import '../strands/ir_types.js';
|
|
|
7
7
|
import '../dom/p5.Element.js';
|
|
8
8
|
import '../dom/p5.File.js';
|
|
9
9
|
import '../io/p5.XML.js';
|
|
10
|
-
import '../p5.Renderer-
|
|
10
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
11
11
|
import '../image/filters.js';
|
|
12
12
|
import '../math/p5.Vector.js';
|
|
13
13
|
import '../shape/custom_shapes.js';
|
package/dist/dom/dom.js
CHANGED
package/dist/dom/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import file from './p5.File.js';
|
|
|
5
5
|
import '../creating_reading-DLkHH80h.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
import '../color/color_spaces/hsb.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-CdA3y5zC.js';
|
|
9
9
|
import '../io/p5.XML.js';
|
|
10
10
|
|
|
11
11
|
function dom(p5){
|
package/dist/dom/p5.Element.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { File } from './p5.File.js';
|
|
2
2
|
import { C as Color } from '../creating_reading-DLkHH80h.js';
|
|
3
|
-
import { a2 as AUTO } from '../constants-
|
|
3
|
+
import { a2 as AUTO } from '../constants-CdA3y5zC.js';
|
|
4
4
|
import '../io/p5.XML.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
package/dist/image/const.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
3
|
-
import { I as Image } from '../p5.Renderer-
|
|
4
|
-
import { C as CLAMP, ab as WEBGL2, n as CORNER, B as BLEND, ac as BLUR, ad as WEBGL } from '../constants-
|
|
2
|
+
import { s as setWebGLUniformValue, e as setWebGLTextureParams, g as getWebGLUniformMetadata, h as getWebGLShaderAttributes, j as populateGLSLHooks, T as Texture } from '../rendering-mbOOQwHM.js';
|
|
3
|
+
import { I as Image } from '../p5.Renderer-BfhR0QHl.js';
|
|
4
|
+
import { C as CLAMP, ab as WEBGL2, n as CORNER, B as BLEND, ac as BLUR, ad as WEBGL } from '../constants-CdA3y5zC.js';
|
|
5
5
|
import { filterParamDefaults } from './const.js';
|
|
6
6
|
import { w as webgl2CompatibilityShader, f as filterBaseVert, a as filterBaseFrag } from '../webgl2Compatibility-DA7DLMuq.js';
|
|
7
|
-
import { g as glslBackend, r as randomGLSL, a as randomVertGLSL } from '../strands_glslBackend-
|
|
7
|
+
import { g as glslBackend, r as randomGLSL, a as randomVertGLSL } from '../strands_glslBackend-D6G3UyCs.js';
|
|
8
8
|
import { getShaderHookTypes } from '../webgl/shaderHookUtils.js';
|
|
9
9
|
import { makeFilterShader } from '../core/filterShaders.js';
|
|
10
10
|
import '../creating_reading-DLkHH80h.js';
|
|
@@ -73,6 +73,7 @@ class FilterRenderer2D {
|
|
|
73
73
|
console.error('WebGL not supported, cannot apply filter.');
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
+
this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
|
|
76
77
|
|
|
77
78
|
this.textures = new Map();
|
|
78
79
|
|
|
@@ -410,7 +411,7 @@ class FilterRenderer2D {
|
|
|
410
411
|
|
|
411
412
|
get canvasTexture() {
|
|
412
413
|
if (!this._canvasTexture) {
|
|
413
|
-
this._canvasTexture = new Texture(this._renderer, this.parentRenderer
|
|
414
|
+
this._canvasTexture = new Texture(this._renderer, this.parentRenderer);
|
|
414
415
|
}
|
|
415
416
|
return this._canvasTexture;
|
|
416
417
|
}
|
package/dist/image/image.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import 'omggif';
|
|
2
2
|
import '../dom/p5.Element.js';
|
|
3
|
-
export { i as default } from '../rendering-
|
|
3
|
+
export { i as default } from '../rendering-mbOOQwHM.js';
|
|
4
4
|
import '../dom/p5.File.js';
|
|
5
5
|
import '../io/p5.XML.js';
|
|
6
6
|
import '../creating_reading-DLkHH80h.js';
|
|
7
7
|
import 'colorjs.io/fn';
|
|
8
8
|
import '../color/color_spaces/hsb.js';
|
|
9
|
-
import '../constants-
|
|
9
|
+
import '../constants-CdA3y5zC.js';
|
|
10
10
|
import '../strands/ir_types.js';
|
|
11
|
-
import '../p5.Renderer-
|
|
11
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
12
12
|
import './filters.js';
|
|
13
13
|
import '../math/p5.Vector.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
package/dist/image/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as image$1, l as loadingDisplaying, t as texture } from '../rendering-
|
|
2
|
-
import { i as image$2 } from '../p5.Renderer-
|
|
1
|
+
import { i as image$1, l as loadingDisplaying, t as texture } from '../rendering-mbOOQwHM.js';
|
|
2
|
+
import { i as image$2 } from '../p5.Renderer-BfhR0QHl.js';
|
|
3
3
|
import pixels from './pixels.js';
|
|
4
4
|
import shader from '../webgl/p5.Shader.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-CdA3y5zC.js';
|
|
6
6
|
import '../creating_reading-DLkHH80h.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-
|
|
3
|
-
export { l as default } from '../rendering-
|
|
2
|
+
import '../constants-CdA3y5zC.js';
|
|
3
|
+
export { l as default } from '../rendering-mbOOQwHM.js';
|
|
4
4
|
import 'omggif';
|
|
5
5
|
import '../creating_reading-DLkHH80h.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
@@ -9,7 +9,7 @@ import '../strands/ir_types.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-
|
|
12
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
13
13
|
import './filters.js';
|
|
14
14
|
import '../math/p5.Vector.js';
|
|
15
15
|
import '../shape/custom_shapes.js';
|
package/dist/image/p5.Image.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './filters.js';
|
|
2
|
-
export { I as Image, i as default } from '../p5.Renderer-
|
|
2
|
+
export { I as Image, i as default } from '../p5.Renderer-BfhR0QHl.js';
|
|
3
3
|
import '../io/utilities.js';
|
|
4
4
|
import '../creating_reading-DLkHH80h.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-CdA3y5zC.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-
|
|
2
|
-
export { f as default, d as request } from '../rendering-
|
|
1
|
+
import '../p5.Renderer-BfhR0QHl.js';
|
|
2
|
+
export { f as default, d as request } from '../rendering-mbOOQwHM.js';
|
|
3
3
|
import './csv.js';
|
|
4
4
|
import './utilities.js';
|
|
5
5
|
import '../creating_reading-DLkHH80h.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
import '../color/color_spaces/hsb.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-CdA3y5zC.js';
|
|
9
9
|
import '../image/filters.js';
|
|
10
10
|
import '../math/p5.Vector.js';
|
|
11
11
|
import '../shape/custom_shapes.js';
|