p5 2.2.2-rc.0 → 2.2.2-rc.2

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 (86) hide show
  1. package/dist/accessibility/color_namer.js +5 -5
  2. package/dist/accessibility/index.js +5 -5
  3. package/dist/app.js +5 -5
  4. package/dist/color/color_conversion.js +5 -5
  5. package/dist/color/creating_reading.js +1 -1
  6. package/dist/color/index.js +2 -2
  7. package/dist/color/p5.Color.js +1 -1
  8. package/dist/color/setting.js +2 -2
  9. package/dist/{constants-D3npMLOW.js → constants--VqmEGYW.js} +1 -1
  10. package/dist/core/constants.js +1 -1
  11. package/dist/core/environment.js +1 -1
  12. package/dist/core/filterShaders.js +1 -1
  13. package/dist/core/friendly_errors/fes_core.js +1 -1
  14. package/dist/core/friendly_errors/file_errors.js +1 -1
  15. package/dist/core/friendly_errors/index.js +1 -1
  16. package/dist/core/friendly_errors/param_validator.js +1 -1
  17. package/dist/core/friendly_errors/sketch_verifier.js +1 -1
  18. package/dist/core/helpers.js +1 -1
  19. package/dist/core/init.js +5 -5
  20. package/dist/core/internationalization.js +1 -1
  21. package/dist/core/legacy.js +5 -5
  22. package/dist/core/main.js +5 -5
  23. package/dist/core/p5.Graphics.js +4 -4
  24. package/dist/core/p5.Renderer.js +3 -3
  25. package/dist/core/p5.Renderer2D.js +5 -5
  26. package/dist/core/p5.Renderer3D.js +4 -4
  27. package/dist/core/rendering.js +4 -4
  28. package/dist/{creating_reading-ZXzcZEsb.js → creating_reading-C7hu6sg1.js} +2 -2
  29. package/dist/dom/dom.js +2 -2
  30. package/dist/dom/index.js +2 -2
  31. package/dist/dom/p5.Element.js +2 -2
  32. package/dist/dom/p5.MediaElement.js +2 -2
  33. package/dist/image/const.js +1 -1
  34. package/dist/image/filterRenderer2D.js +4 -4
  35. package/dist/image/image.js +4 -4
  36. package/dist/image/index.js +4 -4
  37. package/dist/image/loading_displaying.js +4 -4
  38. package/dist/image/p5.Image.js +3 -3
  39. package/dist/io/files.js +4 -4
  40. package/dist/io/index.js +4 -4
  41. package/dist/{main-C5AeICIY.js → main-DifEeQiX.js} +4 -4
  42. package/dist/math/Matrices/Matrix.js +1 -1
  43. package/dist/math/Matrices/MatrixNumjs.js +1 -1
  44. package/dist/math/index.js +1 -1
  45. package/dist/math/p5.Matrix.js +1 -1
  46. package/dist/math/p5.Vector.js +1 -1
  47. package/dist/math/trigonometry.js +1 -1
  48. package/dist/{p5.Renderer-xpFkUQC6.js → p5.Renderer-BuaG4snH.js} +2 -2
  49. package/dist/{rendering-B8po3Onj.js → rendering-uHkWQXtu.js} +3 -3
  50. package/dist/shape/2d_primitives.js +1 -1
  51. package/dist/shape/attributes.js +1 -1
  52. package/dist/shape/custom_shapes.js +2 -2
  53. package/dist/shape/index.js +2 -2
  54. package/dist/strands/strands_api.js +43 -14
  55. package/dist/type/index.js +3 -3
  56. package/dist/type/p5.Font.js +3 -3
  57. package/dist/type/textCore.js +3 -3
  58. package/dist/webgl/3d_primitives.js +4 -4
  59. package/dist/webgl/GeometryBuilder.js +1 -1
  60. package/dist/webgl/ShapeBuilder.js +1 -1
  61. package/dist/webgl/enums.js +1 -1
  62. package/dist/webgl/index.js +4 -4
  63. package/dist/webgl/interaction.js +1 -1
  64. package/dist/webgl/light.js +4 -4
  65. package/dist/webgl/loading.js +4 -4
  66. package/dist/webgl/material.js +4 -4
  67. package/dist/webgl/p5.Camera.js +4 -4
  68. package/dist/webgl/p5.Framebuffer.js +4 -4
  69. package/dist/webgl/p5.Geometry.js +1 -1
  70. package/dist/webgl/p5.Quat.js +1 -1
  71. package/dist/webgl/p5.RendererGL.js +4 -4
  72. package/dist/webgl/p5.Texture.js +4 -4
  73. package/dist/webgl/text.js +4 -4
  74. package/dist/webgl/utils.js +4 -4
  75. package/dist/webgpu/index.js +1 -1
  76. package/dist/webgpu/p5.RendererWebGPU.js +2 -2
  77. package/lib/p5.esm.js +47 -18
  78. package/lib/p5.esm.min.js +1 -1
  79. package/lib/p5.js +47 -18
  80. package/lib/p5.min.js +1 -1
  81. package/lib/p5.webgpu.esm.js +2 -2
  82. package/lib/p5.webgpu.js +2 -2
  83. package/lib/p5.webgpu.min.js +1 -1
  84. package/package.json +1 -1
  85. package/types/global.d.ts +4 -4
  86. package/types/p5.d.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  import { Vector } from '../p5.Vector.js';
2
2
  import { MatrixInterface } from './MatrixInterface.js';
3
- import '../../constants-D3npMLOW.js';
3
+ import '../../constants--VqmEGYW.js';
4
4
 
5
5
  /**
6
6
  * @module Math
@@ -1,7 +1,7 @@
1
1
  import nj from '@d4c/numjs/build/module/numjs.min.js';
2
2
  import { Vector } from '../p5.Vector.js';
3
3
  import { MatrixInterface } from './MatrixInterface.js';
4
- import '../../constants-D3npMLOW.js';
4
+ import '../../constants--VqmEGYW.js';
5
5
 
6
6
  let isMatrixArray = x => Array.isArray(x);
7
7
  if (typeof Float32Array !== 'undefined') {
@@ -4,7 +4,7 @@ import random from './random.js';
4
4
  import trigonometry from './trigonometry.js';
5
5
  import math$1 from './math.js';
6
6
  import vector from './p5.Vector.js';
7
- import '../constants-D3npMLOW.js';
7
+ import '../constants--VqmEGYW.js';
8
8
 
9
9
  function math(p5){
10
10
  p5.registerAddon(calculation);
@@ -1,6 +1,6 @@
1
1
  import { Matrix } from './Matrices/Matrix.js';
2
2
  import './p5.Vector.js';
3
- import '../constants-D3npMLOW.js';
3
+ import '../constants--VqmEGYW.js';
4
4
  import './Matrices/MatrixInterface.js';
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { q as TWO_PI } from '../constants-D3npMLOW.js';
1
+ import { q as TWO_PI } from '../constants--VqmEGYW.js';
2
2
 
3
3
  /**
4
4
  * @module Math
@@ -1,4 +1,4 @@
1
- import { a5 as RAD_TO_DEG, a6 as DEG_TO_RAD } from '../constants-D3npMLOW.js';
1
+ import { a5 as RAD_TO_DEG, a6 as DEG_TO_RAD } from '../constants--VqmEGYW.js';
2
2
 
3
3
  /**
4
4
  * @module Math
@@ -1,5 +1,5 @@
1
- import { C as Color } from './creating_reading-ZXzcZEsb.js';
2
- import { a2 as NORMAL, aA as WORD, ax as BASELINE, av as LEFT, v as CENTER, p as CORNER, J as INCLUDE } from './constants-D3npMLOW.js';
1
+ import { C as Color } from './creating_reading-C7hu6sg1.js';
2
+ import { a2 as NORMAL, aA as WORD, ax as BASELINE, av as LEFT, v as CENTER, p as CORNER, J as INCLUDE } from './constants--VqmEGYW.js';
3
3
  import Filters from './image/filters.js';
4
4
  import { Vector } from './math/p5.Vector.js';
5
5
  import { Shape } from './shape/custom_shapes.js';
@@ -1,7 +1,7 @@
1
- import { p as CORNER, t as CORNERS, v as CENTER, aB as COVER, aC as CONTAIN, a9 as RIGHT, aw as BOTTOM, B as BLEND, aD as FILL, ad as IMAGE, C as CLAMP, w as ROUND, Y as LINES, X as POINTS, c as TRIANGLES, ab as BLUR, D as DARKEST, L as LIGHTEST, A as ADD, S as SUBTRACT, a as SCREEN, E as EXCLUSION, R as REPLACE, M as MULTIPLY, b as REMOVE, as as BURN, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, d as UNSIGNED_INT, U as UNSIGNED_BYTE, av as LEFT, ax as BASELINE, ay as TOP, aE as SIMPLE, aF as FULL, q as TWO_PI, Q as OPEN, a2 as NORMAL, V as CLOSE, at as PIE, au as CHORD, h as TEXTURE, P as P2D, g as LINEAR, aa as WEBGL2, N as NEAREST, aG as LINEAR_MIPMAP, f as REPEAT, e as MIRROR, F as FLOAT, ac as WEBGL, H as HALF_FLOAT } from './constants-D3npMLOW.js';
2
- import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-ZXzcZEsb.js';
1
+ import { p as CORNER, t as CORNERS, v as CENTER, aB as COVER, aC as CONTAIN, a9 as RIGHT, aw as BOTTOM, B as BLEND, aD as FILL, ad as IMAGE, C as CLAMP, w as ROUND, Y as LINES, X as POINTS, c as TRIANGLES, ab as BLUR, D as DARKEST, L as LIGHTEST, A as ADD, S as SUBTRACT, a as SCREEN, E as EXCLUSION, R as REPLACE, M as MULTIPLY, b as REMOVE, as as BURN, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, d as UNSIGNED_INT, U as UNSIGNED_BYTE, av as LEFT, ax as BASELINE, ay as TOP, aE as SIMPLE, aF as FULL, q as TWO_PI, Q as OPEN, a2 as NORMAL, V as CLOSE, at as PIE, au as CHORD, h as TEXTURE, P as P2D, g as LINEAR, aa as WEBGL2, N as NEAREST, aG as LINEAR_MIPMAP, f as REPEAT, e as MIRROR, F as FLOAT, ac as WEBGL, H as HALF_FLOAT } from './constants--VqmEGYW.js';
2
+ import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-C7hu6sg1.js';
3
3
  import { Element } from './dom/p5.Element.js';
4
- import { R as Renderer, I as Image } from './p5.Renderer-xpFkUQC6.js';
4
+ import { R as Renderer, I as Image } from './p5.Renderer-BuaG4snH.js';
5
5
  import { MediaElement } from './dom/p5.MediaElement.js';
6
6
  import primitives from './shape/2d_primitives.js';
7
7
  import attributes from './shape/attributes.js';
@@ -1,4 +1,4 @@
1
- import { p as CORNER, q as TWO_PI, r as HALF_PI, s as PI } from '../constants-D3npMLOW.js';
1
+ import { p as CORNER, q as TWO_PI, r as HALF_PI, s as PI } from '../constants--VqmEGYW.js';
2
2
  import canvas from '../core/helpers.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { p as CORNER, t as CORNERS, u as RADIUS, v as CENTER, w as ROUND, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER } from '../constants-D3npMLOW.js';
1
+ import { p as CORNER, t as CORNERS, u as RADIUS, v as CENTER, w as ROUND, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER } from '../constants--VqmEGYW.js';
2
2
 
3
3
  /**
4
4
  * @module Shape
@@ -1,6 +1,6 @@
1
- import { C as Color } from '../creating_reading-ZXzcZEsb.js';
1
+ import { C as Color } from '../creating_reading-C7hu6sg1.js';
2
2
  import { Vector } from '../math/p5.Vector.js';
3
- import { J as INCLUDE, K as PATH, O as EMPTY_PATH, Q as OPEN, V as CLOSE, X as POINTS, Y as LINES, c as TRIANGLES, Z as QUADS, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, $ as QUAD_STRIP, a0 as EXCLUDE, a1 as JOIN } from '../constants-D3npMLOW.js';
3
+ import { J as INCLUDE, K as PATH, O as EMPTY_PATH, Q as OPEN, V as CLOSE, X as POINTS, Y as LINES, c as TRIANGLES, Z as QUADS, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, $ as QUAD_STRIP, a0 as EXCLUDE, a1 as JOIN } from '../constants--VqmEGYW.js';
4
4
  import 'colorjs.io/fn';
5
5
  import '../color/color_spaces/hsb.js';
6
6
 
@@ -3,9 +3,9 @@ import attributes from './attributes.js';
3
3
  import curves from './curves.js';
4
4
  import vertex from './vertex.js';
5
5
  import customShapes from './custom_shapes.js';
6
- import '../constants-D3npMLOW.js';
6
+ import '../constants--VqmEGYW.js';
7
7
  import '../core/helpers.js';
8
- import '../creating_reading-ZXzcZEsb.js';
8
+ import '../creating_reading-C7hu6sg1.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
11
11
  import '../math/p5.Vector.js';
@@ -40,32 +40,45 @@ function _getBuiltinGlobalsCache(strandsContext) {
40
40
  return strandsContext._builtinGlobals
41
41
  }
42
42
 
43
- function getBuiltinGlobalNode(strandsContext, name) {
44
- const spec = BUILTIN_GLOBAL_SPECS[name];
45
- if (!spec) return null
46
-
43
+ function getOrCreateUniformNode(strandsContext, uniformName, typeInfo, defaultValueFn) {
47
44
  const cache = _getBuiltinGlobalsCache(strandsContext);
48
- const uniformName = `_p5_global_${name}`;
45
+
49
46
  const cached = cache.nodes.get(uniformName);
50
- if (cached) return cached
47
+ if (cached) return cached;
51
48
 
52
49
  if (!cache.uniformsAdded.has(uniformName)) {
53
50
  cache.uniformsAdded.add(uniformName);
54
51
  strandsContext.uniforms.push({
55
52
  name: uniformName,
56
- typeInfo: spec.typeInfo,
57
- defaultValue: () => {
58
- const p5Instance = strandsContext.renderer?._pInst || strandsContext.p5?.instance;
59
- return p5Instance ? spec.get(p5Instance) : undefined
60
- },
53
+ typeInfo,
54
+ defaultValue: defaultValueFn,
61
55
  });
62
56
  }
63
57
 
64
- const { id, dimension } = variableNode(strandsContext, spec.typeInfo, uniformName);
58
+ const { id, dimension } = variableNode(strandsContext, typeInfo, uniformName);
65
59
  const node = createStrandsNode(id, dimension, strandsContext);
66
- node._originalBuiltinName = name;
67
60
  cache.nodes.set(uniformName, node);
68
- return node
61
+ return node;
62
+ }
63
+
64
+ function getBuiltinGlobalNode(strandsContext, name) {
65
+ const spec = BUILTIN_GLOBAL_SPECS[name];
66
+ if (!spec) return null;
67
+
68
+ const uniformName = `_p5_global_${name}`;
69
+ const instance = strandsContext.renderer?._pInst || strandsContext.p5?.instance;
70
+
71
+ const node = getOrCreateUniformNode(
72
+ strandsContext,
73
+ uniformName,
74
+ spec.typeInfo,
75
+ () => {
76
+ return instance ? spec.get(instance) : undefined;
77
+ }
78
+ );
79
+
80
+ node._originalBuiltinName = name;
81
+ return node;
69
82
  }
70
83
 
71
84
  function installBuiltinGlobalAccessors(strandsContext) {
@@ -228,6 +241,7 @@ function initGlobalStrandsAPI(p5, fn, strandsContext) {
228
241
  // Add noise function with backend-agnostic implementation
229
242
  const originalNoise = fn.noise;
230
243
  const originalNoiseDetail = fn.noiseDetail;
244
+ const originalMillis = fn.millis;
231
245
 
232
246
  strandsContext._noiseOctaves = null;
233
247
  strandsContext._noiseAmpFalloff = null;
@@ -290,6 +304,21 @@ function initGlobalStrandsAPI(p5, fn, strandsContext) {
290
304
  return createStrandsNode(id, dimension, strandsContext);
291
305
  };
292
306
 
307
+ fn.millis = function (...args) {
308
+ if (!strandsContext.active) {
309
+ return originalMillis.apply(this, args);
310
+ }
311
+ const instance = strandsContext.renderer?._pInst || strandsContext.p5?.instance;
312
+ return getOrCreateUniformNode(
313
+ strandsContext,
314
+ '_p5_global_millis',
315
+ DataType.float1,
316
+ () => {
317
+ return instance ? instance.millis() : undefined;
318
+ }
319
+ );
320
+ };
321
+
293
322
  // Next is type constructors and uniform functions.
294
323
  // For some of them, we have aliases so that you can write either a more human-readable
295
324
  // variant or also one more directly translated from GLSL, or to be more compatible with
@@ -1,10 +1,10 @@
1
1
  import textCore from './textCore.js';
2
2
  import font from './p5.Font.js';
3
- import '../p5.Renderer-xpFkUQC6.js';
4
- import '../creating_reading-ZXzcZEsb.js';
3
+ import '../p5.Renderer-BuaG4snH.js';
4
+ import '../creating_reading-C7hu6sg1.js';
5
5
  import 'colorjs.io/fn';
6
6
  import '../color/color_spaces/hsb.js';
7
- import '../constants-D3npMLOW.js';
7
+ import '../constants--VqmEGYW.js';
8
8
  import '../image/filters.js';
9
9
  import '../math/p5.Vector.js';
10
10
  import '../shape/custom_shapes.js';
@@ -1,12 +1,12 @@
1
1
  import { textCoreConstants } from './textCore.js';
2
- import { v as CENTER, a9 as RIGHT, u as RADIUS } from '../constants-D3npMLOW.js';
2
+ import { v as CENTER, a9 as RIGHT, u as RADIUS } from '../constants--VqmEGYW.js';
3
3
  import { UnicodeRange } from '@japont/unicode-range';
4
4
  import { unicodeRanges } from './unicodeRanges.js';
5
5
  import { Vector } from '../math/p5.Vector.js';
6
6
  import Typr from './lib/Typr.js';
7
7
  import { createFromCommands } from '@davepagurek/bezier-path';
8
- import '../p5.Renderer-xpFkUQC6.js';
9
- import '../creating_reading-ZXzcZEsb.js';
8
+ import '../p5.Renderer-BuaG4snH.js';
9
+ import '../creating_reading-C7hu6sg1.js';
10
10
  import 'colorjs.io/fn';
11
11
  import '../color/color_spaces/hsb.js';
12
12
  import '../image/filters.js';
@@ -1,8 +1,8 @@
1
- import { R as Renderer } from '../p5.Renderer-xpFkUQC6.js';
2
- import '../creating_reading-ZXzcZEsb.js';
1
+ import { R as Renderer } from '../p5.Renderer-BuaG4snH.js';
2
+ import '../creating_reading-C7hu6sg1.js';
3
3
  import 'colorjs.io/fn';
4
4
  import '../color/color_spaces/hsb.js';
5
- import '../constants-D3npMLOW.js';
5
+ import '../constants--VqmEGYW.js';
6
6
  import '../image/filters.js';
7
7
  import '../math/p5.Vector.js';
8
8
  import '../shape/custom_shapes.js';
@@ -1,16 +1,16 @@
1
- import '../constants-D3npMLOW.js';
2
- export { p as default } from '../rendering-B8po3Onj.js';
1
+ import '../constants--VqmEGYW.js';
2
+ export { p as default } from '../rendering-uHkWQXtu.js';
3
3
  import '../math/p5.Vector.js';
4
4
  import './p5.Geometry.js';
5
5
  import '../math/p5.Matrix.js';
6
6
  import '../math/Matrices/Matrix.js';
7
- import '../creating_reading-ZXzcZEsb.js';
7
+ import '../creating_reading-C7hu6sg1.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-xpFkUQC6.js';
13
+ import '../p5.Renderer-BuaG4snH.js';
14
14
  import '../image/filters.js';
15
15
  import '../shape/custom_shapes.js';
16
16
  import '../core/States.js';
@@ -1,4 +1,4 @@
1
- import { T as TRIANGLE_STRIP, $ as QUAD_STRIP, _ as TRIANGLE_FAN, c as TRIANGLES } from '../constants-D3npMLOW.js';
1
+ import { T as TRIANGLE_STRIP, $ as QUAD_STRIP, _ as TRIANGLE_FAN, c as TRIANGLES } from '../constants--VqmEGYW.js';
2
2
  import '../math/p5.Matrix.js';
3
3
  import { Geometry } from './p5.Geometry.js';
4
4
  import { Matrix } from '../math/Matrices/Matrix.js';
@@ -1,4 +1,4 @@
1
- import { K as PATH, Z as QUADS, $ as QUAD_STRIP, T as TRIANGLE_STRIP, c as TRIANGLES, ad as IMAGE, Y as LINES, _ as TRIANGLE_FAN } from '../constants-D3npMLOW.js';
1
+ import { K as PATH, Z as QUADS, $ as QUAD_STRIP, T as TRIANGLE_STRIP, c as TRIANGLES, ad as IMAGE, Y as LINES, _ as TRIANGLE_FAN } from '../constants--VqmEGYW.js';
2
2
  import { Geometry } from './p5.Geometry.js';
3
3
  import libtess from 'libtess';
4
4
  import { Vector } from '../math/p5.Vector.js';
@@ -1,4 +1,4 @@
1
- import { a3 as constants } from '../constants-D3npMLOW.js';
1
+ import { a3 as constants } from '../constants--VqmEGYW.js';
2
2
 
3
3
  function getStrokeDefs(shaderConstant) {
4
4
  const STROKE_CAP_ENUM = {};
@@ -1,4 +1,4 @@
1
- import { r as renderer3D, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, t as texture } from '../rendering-B8po3Onj.js';
1
+ import { r as renderer3D, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, t as texture } from '../rendering-uHkWQXtu.js';
2
2
  import interaction from './interaction.js';
3
3
  import loading from './loading.js';
4
4
  import text from './text.js';
@@ -8,14 +8,14 @@ import matrix from '../math/p5.Matrix.js';
8
8
  import geometry from './p5.Geometry.js';
9
9
  import dataArray from './p5.DataArray.js';
10
10
  import rendererGL from './p5.RendererGL.js';
11
- import '../constants-D3npMLOW.js';
12
- import '../creating_reading-ZXzcZEsb.js';
11
+ import '../constants--VqmEGYW.js';
12
+ import '../creating_reading-C7hu6sg1.js';
13
13
  import 'colorjs.io/fn';
14
14
  import '../color/color_spaces/hsb.js';
15
15
  import '../dom/p5.Element.js';
16
16
  import '../dom/p5.File.js';
17
17
  import '../io/p5.XML.js';
18
- import '../p5.Renderer-xpFkUQC6.js';
18
+ import '../p5.Renderer-BuaG4snH.js';
19
19
  import '../image/filters.js';
20
20
  import '../math/p5.Vector.js';
21
21
  import '../shape/custom_shapes.js';
@@ -1,4 +1,4 @@
1
- import { G as GRID, i as AXES } from '../constants-D3npMLOW.js';
1
+ import { G as GRID, i as AXES } from '../constants--VqmEGYW.js';
2
2
  import { Vector } from '../math/p5.Vector.js';
3
3
 
4
4
  /**
@@ -1,13 +1,13 @@
1
- export { l as default } from '../rendering-B8po3Onj.js';
1
+ export { l as default } from '../rendering-uHkWQXtu.js';
2
2
  import '../math/p5.Vector.js';
3
- import '../creating_reading-ZXzcZEsb.js';
4
- import '../constants-D3npMLOW.js';
3
+ import '../creating_reading-C7hu6sg1.js';
4
+ import '../constants--VqmEGYW.js';
5
5
  import '../dom/p5.Element.js';
6
6
  import '../dom/p5.File.js';
7
7
  import '../io/p5.XML.js';
8
8
  import 'colorjs.io/fn';
9
9
  import '../color/color_spaces/hsb.js';
10
- import '../p5.Renderer-xpFkUQC6.js';
10
+ import '../p5.Renderer-BuaG4snH.js';
11
11
  import '../image/filters.js';
12
12
  import '../shape/custom_shapes.js';
13
13
  import '../core/States.js';
@@ -1,16 +1,16 @@
1
1
  import { Geometry } from './p5.Geometry.js';
2
2
  import { Vector } from '../math/p5.Vector.js';
3
- import { a as request } from '../rendering-B8po3Onj.js';
4
- import '../constants-D3npMLOW.js';
3
+ import { a as request } from '../rendering-uHkWQXtu.js';
4
+ import '../constants--VqmEGYW.js';
5
5
  import './p5.DataArray.js';
6
6
  import '../io/utilities.js';
7
- import '../creating_reading-ZXzcZEsb.js';
7
+ import '../creating_reading-C7hu6sg1.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-xpFkUQC6.js';
13
+ import '../p5.Renderer-BuaG4snH.js';
14
14
  import '../image/filters.js';
15
15
  import '../shape/custom_shapes.js';
16
16
  import '../core/States.js';
@@ -1,13 +1,13 @@
1
- import '../constants-D3npMLOW.js';
2
- export { m as default } from '../rendering-B8po3Onj.js';
1
+ import '../constants--VqmEGYW.js';
2
+ export { m as default } from '../rendering-uHkWQXtu.js';
3
3
  import './p5.Shader.js';
4
- import '../creating_reading-ZXzcZEsb.js';
4
+ import '../creating_reading-C7hu6sg1.js';
5
5
  import '../dom/p5.Element.js';
6
6
  import '../dom/p5.File.js';
7
7
  import '../io/p5.XML.js';
8
8
  import 'colorjs.io/fn';
9
9
  import '../color/color_spaces/hsb.js';
10
- import '../p5.Renderer-xpFkUQC6.js';
10
+ import '../p5.Renderer-BuaG4snH.js';
11
11
  import '../image/filters.js';
12
12
  import '../math/p5.Vector.js';
13
13
  import '../shape/custom_shapes.js';
@@ -1,17 +1,17 @@
1
1
  import '../math/p5.Matrix.js';
2
2
  import '../math/p5.Vector.js';
3
3
  import './p5.Quat.js';
4
- export { C as Camera, c as default } from '../rendering-B8po3Onj.js';
4
+ export { C as Camera, c as default } from '../rendering-uHkWQXtu.js';
5
5
  import '../math/Matrices/Matrix.js';
6
- import '../constants-D3npMLOW.js';
6
+ import '../constants--VqmEGYW.js';
7
7
  import '../math/Matrices/MatrixInterface.js';
8
- import '../creating_reading-ZXzcZEsb.js';
8
+ import '../creating_reading-C7hu6sg1.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-xpFkUQC6.js';
14
+ import '../p5.Renderer-BuaG4snH.js';
15
15
  import '../image/filters.js';
16
16
  import '../shape/custom_shapes.js';
17
17
  import '../core/States.js';
@@ -1,12 +1,12 @@
1
- import '../constants-D3npMLOW.js';
2
- import '../creating_reading-ZXzcZEsb.js';
3
- export { w as Framebuffer, v as FramebufferCamera, F as FramebufferTexture, f as default } from '../rendering-B8po3Onj.js';
1
+ import '../constants--VqmEGYW.js';
2
+ import '../creating_reading-C7hu6sg1.js';
3
+ export { w as Framebuffer, v as FramebufferCamera, F as FramebufferTexture, f as default } from '../rendering-uHkWQXtu.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-xpFkUQC6.js';
9
+ import '../p5.Renderer-BuaG4snH.js';
10
10
  import '../image/filters.js';
11
11
  import '../math/p5.Vector.js';
12
12
  import '../shape/custom_shapes.js';
@@ -1,4 +1,4 @@
1
- import { a7 as FLAT, a8 as SMOOTH } from '../constants-D3npMLOW.js';
1
+ import { a7 as FLAT, a8 as SMOOTH } from '../constants--VqmEGYW.js';
2
2
  import { DataArray } from './p5.DataArray.js';
3
3
  import { Vector } from '../math/p5.Vector.js';
4
4
  import { downloadFile } from '../io/utilities.js';
@@ -1,5 +1,5 @@
1
1
  import { Vector } from '../math/p5.Vector.js';
2
- import '../constants-D3npMLOW.js';
2
+ import '../constants--VqmEGYW.js';
3
3
 
4
4
  /**
5
5
  * @module Math
@@ -1,9 +1,9 @@
1
- import { ac as WEBGL, aa as WEBGL2, L as LIGHTEST, D as DARKEST, S as SUBTRACT, R as REPLACE, E as EXCLUSION, a as SCREEN, M as MULTIPLY, b as REMOVE, A as ADD, B as BLEND, c as TRIANGLES, p as CORNER, U as UNSIGNED_BYTE, g as LINEAR, aG as LINEAR_MIPMAP, h as TEXTURE, F as FLOAT, d as UNSIGNED_INT, H as HALF_FLOAT } from '../constants-D3npMLOW.js';
2
- import { R as Renderer3D, o as readPixelWebGL, q as readPixelsWebGL, M as MipmapTexture, h as getWebGLShaderAttributes, g as getWebGLUniformMetadata, s as setWebGLUniformValue, e as setWebGLTextureParams, j as populateGLSLHooks, u as checkWebGLCapabilities } from '../rendering-B8po3Onj.js';
1
+ import { ac as WEBGL, aa as WEBGL2, L as LIGHTEST, D as DARKEST, S as SUBTRACT, R as REPLACE, E as EXCLUSION, a as SCREEN, M as MULTIPLY, b as REMOVE, A as ADD, B as BLEND, c as TRIANGLES, p as CORNER, U as UNSIGNED_BYTE, g as LINEAR, aG as LINEAR_MIPMAP, h as TEXTURE, F as FLOAT, d as UNSIGNED_INT, H as HALF_FLOAT } from '../constants--VqmEGYW.js';
2
+ import { R as Renderer3D, o as readPixelWebGL, q as readPixelsWebGL, M as MipmapTexture, h as getWebGLShaderAttributes, g as getWebGLUniformMetadata, s as setWebGLUniformValue, e as setWebGLTextureParams, j as populateGLSLHooks, u as checkWebGLCapabilities } from '../rendering-uHkWQXtu.js';
3
3
  import { getStrokeDefs } from './enums.js';
4
4
  import { Shader } from './p5.Shader.js';
5
- import { R as RGB, h as RGBA } from '../creating_reading-ZXzcZEsb.js';
6
- import { I as Image } from '../p5.Renderer-xpFkUQC6.js';
5
+ import { R as RGB, h as RGBA } from '../creating_reading-C7hu6sg1.js';
6
+ import { I as Image } from '../p5.Renderer-BuaG4snH.js';
7
7
  import { glslBackend } from './strands_glslBackend.js';
8
8
  import '../strands/ir_types.js';
9
9
  import { getShaderHookTypes } from './shaderHookUtils.js';
@@ -1,11 +1,11 @@
1
- import '../constants-D3npMLOW.js';
1
+ import '../constants--VqmEGYW.js';
2
2
  import '../dom/p5.Element.js';
3
- import '../p5.Renderer-xpFkUQC6.js';
3
+ import '../p5.Renderer-BuaG4snH.js';
4
4
  import '../dom/p5.MediaElement.js';
5
- export { M as MipmapTexture, T as Texture, t as default } from '../rendering-B8po3Onj.js';
5
+ export { M as MipmapTexture, T as Texture, t as default } from '../rendering-uHkWQXtu.js';
6
6
  import '../dom/p5.File.js';
7
7
  import '../io/p5.XML.js';
8
- import '../creating_reading-ZXzcZEsb.js';
8
+ import '../creating_reading-C7hu6sg1.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
11
11
  import '../image/filters.js';
@@ -1,15 +1,15 @@
1
- import { h as TEXTURE, c as TRIANGLES } from '../constants-D3npMLOW.js';
2
- import { R as Renderer3D } from '../rendering-B8po3Onj.js';
1
+ import { h as TEXTURE, c as TRIANGLES } from '../constants--VqmEGYW.js';
2
+ import { R as Renderer3D } from '../rendering-uHkWQXtu.js';
3
3
  import { Vector } from '../math/p5.Vector.js';
4
4
  import { Geometry } from './p5.Geometry.js';
5
5
  import { Font, arrayCommandsToObjects } from '../type/p5.Font.js';
6
- import '../creating_reading-ZXzcZEsb.js';
6
+ import '../creating_reading-C7hu6sg1.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-xpFkUQC6.js';
12
+ import '../p5.Renderer-BuaG4snH.js';
13
13
  import '../image/filters.js';
14
14
  import '../shape/custom_shapes.js';
15
15
  import '../core/States.js';
@@ -1,12 +1,12 @@
1
- import '../constants-D3npMLOW.js';
2
- export { u as checkWebGLCapabilities, h as getWebGLShaderAttributes, g as getWebGLUniformMetadata, j as populateGLSLHooks, o as readPixelWebGL, q as readPixelsWebGL, e as setWebGLTextureParams, s as setWebGLUniformValue } from '../rendering-B8po3Onj.js';
3
- import '../creating_reading-ZXzcZEsb.js';
1
+ import '../constants--VqmEGYW.js';
2
+ export { u as checkWebGLCapabilities, h as getWebGLShaderAttributes, g as getWebGLUniformMetadata, j as populateGLSLHooks, o as readPixelWebGL, q as readPixelsWebGL, e as setWebGLTextureParams, s as setWebGLUniformValue } from '../rendering-uHkWQXtu.js';
3
+ import '../creating_reading-C7hu6sg1.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-xpFkUQC6.js';
9
+ import '../p5.Renderer-BuaG4snH.js';
10
10
  import '../image/filters.js';
11
11
  import '../math/p5.Vector.js';
12
12
  import '../shape/custom_shapes.js';
@@ -1,5 +1,5 @@
1
1
  import rendererWebGPU from './p5.RendererWebGPU.js';
2
- import '../constants-D3npMLOW.js';
2
+ import '../constants--VqmEGYW.js';
3
3
  import '../webgl/enums.js';
4
4
  import '../strands/ir_types.js';
5
5
  import './shaders/color.js';
@@ -1,4 +1,4 @@
1
- import { W as WEBGPU, T as TRIANGLE_STRIP, L as LIGHTEST, D as DARKEST, S as SUBTRACT, R as REPLACE, E as EXCLUSION, a as SCREEN, M as MULTIPLY, b as REMOVE, A as ADD, B as BLEND, c as TRIANGLES, U as UNSIGNED_BYTE, F as FLOAT, H as HALF_FLOAT, d as UNSIGNED_INT, e as MIRROR, f as REPEAT, C as CLAMP, g as LINEAR, N as NEAREST } from '../constants-D3npMLOW.js';
1
+ import { W as WEBGPU, T as TRIANGLE_STRIP, L as LIGHTEST, D as DARKEST, S as SUBTRACT, R as REPLACE, E as EXCLUSION, a as SCREEN, M as MULTIPLY, b as REMOVE, A as ADD, B as BLEND, c as TRIANGLES, U as UNSIGNED_BYTE, F as FLOAT, H as HALF_FLOAT, d as UNSIGNED_INT, e as MIRROR, f as REPEAT, C as CLAMP, g as LINEAR, N as NEAREST } from '../constants--VqmEGYW.js';
2
2
  import { getStrokeDefs } from '../webgl/enums.js';
3
3
  import { DataType } from '../strands/ir_types.js';
4
4
  import { colorVertexShader, colorFragmentShader } from './shaders/color.js';
@@ -3128,7 +3128,7 @@ ${hookUniformFields}}
3128
3128
  {
3129
3129
  vertex: {},
3130
3130
  fragment: {
3131
- "vec4<f32> getColor": `(inputs: FilterInputs, tex: texture_2d<f32>, tex_sampler: sampler) -> vec4<f32> {
3131
+ "vec4<f32> getColor": `(inputs: FilterInputs, canvasContent: texture_2d<f32>, canvasContent_sampler: sampler) -> vec4<f32> {
3132
3132
  return textureSample(tex, tex_sampler, inputs.texCoord);
3133
3133
  }`,
3134
3134
  },