p5 2.3.0-rc.6 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -11
- package/dist/accessibility/color_namer.js +4 -4
- package/dist/accessibility/index.js +4 -4
- package/dist/app.js +4 -4
- package/dist/app.node.js +4 -4
- package/dist/color/color_conversion.js +4 -4
- package/dist/color/index.js +1 -1
- package/dist/color/setting.js +1 -1
- package/dist/{constants-DFRExFht.js → constants-Dv6ZqA6s.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 +1 -1
- package/dist/core/friendly_errors/sketch_verifier.js +1 -1
- package/dist/core/helpers.js +1 -1
- package/dist/core/init.js +4 -4
- package/dist/core/internationalization.js +1 -1
- package/dist/core/legacy.js +4 -4
- package/dist/core/main.js +4 -4
- package/dist/core/p5.Graphics.js +3 -3
- package/dist/core/p5.Renderer.js +2 -2
- package/dist/core/p5.Renderer2D.js +4 -4
- 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 +3 -3
- 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-rlHd-IO2.js → main-BR2ALC_6.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/p5.Matrix.js +1 -1
- package/dist/math/p5.Vector.js +2 -7
- package/dist/math/patch-vector.js +4 -4
- package/dist/math/trigonometry.js +1 -1
- package/dist/{p5.Renderer-Dh1sXxDM.js → p5.Renderer-XOvhEbJn.js} +1 -1
- package/dist/{rendering-D5Svpe1O.js → rendering-C5lX6zKm.js} +2 -2
- 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/type/index.js +2 -2
- package/dist/type/p5.Font.js +2 -2
- package/dist/type/textCore.js +2 -2
- package/dist/webgl/3d_primitives.js +3 -3
- package/dist/webgl/GeometryBuilder.js +1 -1
- package/dist/webgl/ShapeBuilder.js +1 -1
- package/dist/webgl/enums.js +1 -1
- package/dist/webgl/index.js +3 -3
- 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 +3 -3
- package/dist/webgl/p5.Texture.js +3 -3
- 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/lib/p5.esm.js +6 -11
- package/lib/p5.esm.min.js +1 -1
- package/lib/p5.js +6 -11
- package/lib/p5.min.js +1 -1
- package/lib/p5.webgpu.esm.js +1 -1
- package/lib/p5.webgpu.js +1 -1
- package/lib/p5.webgpu.min.js +1 -1
- package/package.json +1 -1
- package/types/p5.d.ts +1 -6
package/dist/math/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import trigonometry from './trigonometry.js';
|
|
|
5
5
|
import math$1 from './math.js';
|
|
6
6
|
import vector from './p5.Vector.js';
|
|
7
7
|
import vectorValidation from './patch-vector.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-Dv6ZqA6s.js';
|
|
9
9
|
|
|
10
10
|
function math(p5){
|
|
11
11
|
p5.registerAddon(calculation);
|
package/dist/math/p5.Matrix.js
CHANGED
package/dist/math/p5.Vector.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as TWO_PI } from '../constants-
|
|
1
|
+
import { o as TWO_PI } from '../constants-Dv6ZqA6s.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Math
|
|
@@ -311,17 +311,12 @@ class Vector {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
|
-
* Sets the vector
|
|
314
|
+
* Sets the the vector to a new value.
|
|
315
315
|
*
|
|
316
316
|
* `set()` can use separate numbers, as in `v.set(1, 2, 3)`, a
|
|
317
317
|
* <a href="#/p5.Vector">p5.Vector</a> object, as in `v.set(v2)`, or an
|
|
318
318
|
* array of numbers, as in `v.set([1, 2, 3])`.
|
|
319
319
|
*
|
|
320
|
-
* If a value isn't provided for a component, it will be set to 0. For
|
|
321
|
-
* example, `v.set(4, 5)` sets `v.x` to 4, `v.y` to 5, and `v.z` to 0.
|
|
322
|
-
* Calling `set()` with no arguments, as in `v.set()`, sets all the vector's
|
|
323
|
-
* components to 0.
|
|
324
|
-
*
|
|
325
320
|
* @param {Number} [x] x component of the vector.
|
|
326
321
|
* @param {Number} [y] y component of the vector.
|
|
327
322
|
* @param {Number} [z] z component of the vector.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector } from './p5.Vector.js';
|
|
2
|
-
import '../constants-
|
|
2
|
+
import '../constants-Dv6ZqA6s.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -8,7 +8,7 @@ import '../constants-DFRExFht.js';
|
|
|
8
8
|
function _defaultEmptyVector(target){
|
|
9
9
|
return function(...args){
|
|
10
10
|
if(args.length === 0){
|
|
11
|
-
this._friendlyError(
|
|
11
|
+
this.constructor._friendlyError(
|
|
12
12
|
'In 1.x, createVector() was a shortcut for createVector(0, 0, 0). In 2.x, p5.js has vectors of any dimension, so you must provide your desired number of zeros. Use createVector(0, 0) for a 2D vector and createVector(0, 0, 0) for a 3D vector.',
|
|
13
13
|
'p5.createVector'
|
|
14
14
|
);
|
|
@@ -50,7 +50,7 @@ function _validatedVectorOperation(expectsSoloNumberArgument){
|
|
|
50
50
|
for (let i = 0; i < args.length; i++) {
|
|
51
51
|
const v = args[i];
|
|
52
52
|
if (typeof v !== 'number' || !Number.isFinite(v)) {
|
|
53
|
-
if (!
|
|
53
|
+
if (!this.friendlyErrorsDisabled()) {
|
|
54
54
|
this._friendlyError(
|
|
55
55
|
'Arguments contain non-finite numbers',
|
|
56
56
|
'p5.Vector'
|
|
@@ -61,7 +61,7 @@ function _validatedVectorOperation(expectsSoloNumberArgument){
|
|
|
61
61
|
}
|
|
62
62
|
} else {
|
|
63
63
|
if (typeof args !== 'number' || !Number.isFinite(args)) {
|
|
64
|
-
if (!
|
|
64
|
+
if (!this.friendlyErrorsDisabled()) {
|
|
65
65
|
this._friendlyError(
|
|
66
66
|
'Arguments contain non-finite numbers',
|
|
67
67
|
'p5.Vector'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Color } from './creating_reading-DLkHH80h.js';
|
|
2
|
-
import { a1 as NORMAL, aA as WORD, ax as BASELINE, av as LEFT, t as CENTER, n as CORNER, I as INCLUDE } from './constants-
|
|
2
|
+
import { a1 as NORMAL, aA as WORD, ax as BASELINE, av as LEFT, t as CENTER, n as CORNER, I as INCLUDE } from './constants-Dv6ZqA6s.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,8 +1,8 @@
|
|
|
1
|
-
import { n as CORNER, r as CORNERS, t as CENTER, aB as COVER, aC as CONTAIN, aa as RIGHT, aw as BOTTOM, B as BLEND, aD as FILL, ae as IMAGE, C as CLAMP, u as ROUND, Q as LINES, K as POINTS, c as TRIANGLES, ac 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, au as BURN, aq as OVERLAY, ar as HARD_LIGHT, as as SOFT_LIGHT, at 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, o as TWO_PI, O as OPEN, a1 as NORMAL, J as CLOSE, a0 as PIE, $ as CHORD, a7 as TEXTURE, P as P2D, g as LINEAR, ab as WEBGL2, N as NEAREST, aG as LINEAR_MIPMAP, f as REPEAT, e as MIRROR, F as FLOAT, ad as WEBGL, H as HALF_FLOAT, W as WEBGPU } from './constants-
|
|
1
|
+
import { n as CORNER, r as CORNERS, t as CENTER, aB as COVER, aC as CONTAIN, aa as RIGHT, aw as BOTTOM, B as BLEND, aD as FILL, ae as IMAGE, C as CLAMP, u as ROUND, Q as LINES, K as POINTS, c as TRIANGLES, ac 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, au as BURN, aq as OVERLAY, ar as HARD_LIGHT, as as SOFT_LIGHT, at 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, o as TWO_PI, O as OPEN, a1 as NORMAL, J as CLOSE, a0 as PIE, $ as CHORD, a7 as TEXTURE, P as P2D, g as LINEAR, ab as WEBGL2, N as NEAREST, aG as LINEAR_MIPMAP, f as REPEAT, e as MIRROR, F as FLOAT, ad as WEBGL, H as HALF_FLOAT, W as WEBGPU } from './constants-Dv6ZqA6s.js';
|
|
2
2
|
import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-DLkHH80h.js';
|
|
3
3
|
import './strands/ir_types.js';
|
|
4
4
|
import { Element } from './dom/p5.Element.js';
|
|
5
|
-
import { R as Renderer, I as Image } from './p5.Renderer-
|
|
5
|
+
import { R as Renderer, I as Image } from './p5.Renderer-XOvhEbJn.js';
|
|
6
6
|
import { MediaElement } from './dom/p5.MediaElement.js';
|
|
7
7
|
import primitives from './shape/2d_primitives.js';
|
|
8
8
|
import attributes from './shape/attributes.js';
|
package/dist/shape/attributes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CORNER, r as CORNERS, s as RADIUS, t as CENTER, u as ROUND, v as SQUARE, w as PROJECT, x as BEVEL, y as MITER } from '../constants-
|
|
1
|
+
import { n as CORNER, r as CORNERS, s as RADIUS, t as CENTER, u as ROUND, v as SQUARE, w as PROJECT, x as BEVEL, y as MITER } from '../constants-Dv6ZqA6s.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Shape
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as Color } from '../creating_reading-DLkHH80h.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { I as INCLUDE, z as PATH, G as EMPTY_PATH, O as OPEN, J as CLOSE, K as POINTS, Q as LINES, c as TRIANGLES, V as QUADS, X as TRIANGLE_FAN, T as TRIANGLE_STRIP, Y as QUAD_STRIP, Z as EXCLUDE, _ as JOIN, $ as CHORD, a0 as PIE } from '../constants-
|
|
3
|
+
import { I as INCLUDE, z as PATH, G as EMPTY_PATH, O as OPEN, J as CLOSE, K as POINTS, Q as LINES, c as TRIANGLES, V as QUADS, X as TRIANGLE_FAN, T as TRIANGLE_STRIP, Y as QUAD_STRIP, Z as EXCLUDE, _ as JOIN, $ as CHORD, a0 as PIE } from '../constants-Dv6ZqA6s.js';
|
|
4
4
|
import 'colorjs.io/fn';
|
|
5
5
|
import '../color/color_spaces/hsb.js';
|
|
6
6
|
|
package/dist/shape/index.js
CHANGED
|
@@ -3,7 +3,7 @@ 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-
|
|
6
|
+
import '../constants-Dv6ZqA6s.js';
|
|
7
7
|
import '../core/helpers.js';
|
|
8
8
|
import '../creating_reading-DLkHH80h.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
package/dist/type/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import textCore from './textCore.js';
|
|
2
2
|
import font from './p5.Font.js';
|
|
3
|
-
import '../p5.Renderer-
|
|
3
|
+
import '../p5.Renderer-XOvhEbJn.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-Dv6ZqA6s.js';
|
|
8
8
|
import '../image/filters.js';
|
|
9
9
|
import '../math/p5.Vector.js';
|
|
10
10
|
import '../shape/custom_shapes.js';
|
package/dist/type/p5.Font.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { textCoreConstants } from './textCore.js';
|
|
2
|
-
import { t as CENTER, aa as RIGHT, s as RADIUS } from '../constants-
|
|
2
|
+
import { t as CENTER, aa as RIGHT, s as RADIUS } from '../constants-Dv6ZqA6s.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-
|
|
8
|
+
import '../p5.Renderer-XOvhEbJn.js';
|
|
9
9
|
import '../creating_reading-DLkHH80h.js';
|
|
10
10
|
import 'colorjs.io/fn';
|
|
11
11
|
import '../color/color_spaces/hsb.js';
|
package/dist/type/textCore.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as Renderer } from '../p5.Renderer-
|
|
1
|
+
import { R as Renderer } from '../p5.Renderer-XOvhEbJn.js';
|
|
2
2
|
import '../creating_reading-DLkHH80h.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import '../color/color_spaces/hsb.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-Dv6ZqA6s.js';
|
|
6
6
|
import '../image/filters.js';
|
|
7
7
|
import '../math/p5.Vector.js';
|
|
8
8
|
import '../shape/custom_shapes.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { p as default } from '../rendering-
|
|
1
|
+
import '../constants-Dv6ZqA6s.js';
|
|
2
|
+
export { p as default } from '../rendering-C5lX6zKm.js';
|
|
3
3
|
import '../math/p5.Vector.js';
|
|
4
4
|
import './p5.Geometry.js';
|
|
5
5
|
import '../math/p5.Matrix.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-XOvhEbJn.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../shape/custom_shapes.js';
|
|
17
17
|
import '../core/States.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TRIANGLE_STRIP, Y as QUAD_STRIP, X as TRIANGLE_FAN, c as TRIANGLES } from '../constants-
|
|
1
|
+
import { T as TRIANGLE_STRIP, Y as QUAD_STRIP, X as TRIANGLE_FAN, c as TRIANGLES } from '../constants-Dv6ZqA6s.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 { z as PATH, V as QUADS, Y as QUAD_STRIP, T as TRIANGLE_STRIP, c as TRIANGLES, ae as IMAGE, Q as LINES, X as TRIANGLE_FAN } from '../constants-
|
|
1
|
+
import { z as PATH, V as QUADS, Y as QUAD_STRIP, T as TRIANGLE_STRIP, c as TRIANGLES, ae as IMAGE, Q as LINES, X as TRIANGLE_FAN } from '../constants-Dv6ZqA6s.js';
|
|
2
2
|
import { Geometry } from './p5.Geometry.js';
|
|
3
3
|
import libtess from 'libtess';
|
|
4
4
|
import { Vector } from '../math/p5.Vector.js';
|
package/dist/webgl/enums.js
CHANGED
package/dist/webgl/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as renderer3D, p as primitives3D, a as light, m as material, c as camera, b as framebuffer, t as texture } from '../rendering-
|
|
1
|
+
import { r as renderer3D, p as primitives3D, a as light, m as material, c as camera, b as framebuffer, t as texture } from '../rendering-C5lX6zKm.js';
|
|
2
2
|
import interaction from './interaction.js';
|
|
3
3
|
import loading from './loading.js';
|
|
4
4
|
import text from './text.js';
|
|
@@ -8,7 +8,7 @@ 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-
|
|
11
|
+
import '../constants-Dv6ZqA6s.js';
|
|
12
12
|
import '../creating_reading-DLkHH80h.js';
|
|
13
13
|
import 'colorjs.io/fn';
|
|
14
14
|
import '../color/color_spaces/hsb.js';
|
|
@@ -16,7 +16,7 @@ import '../strands/ir_types.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-
|
|
19
|
+
import '../p5.Renderer-XOvhEbJn.js';
|
|
20
20
|
import '../image/filters.js';
|
|
21
21
|
import '../math/p5.Vector.js';
|
|
22
22
|
import '../shape/custom_shapes.js';
|
package/dist/webgl/light.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { a as default } from '../rendering-
|
|
1
|
+
export { a as default } from '../rendering-C5lX6zKm.js';
|
|
2
2
|
import '../math/p5.Vector.js';
|
|
3
3
|
import '../creating_reading-DLkHH80h.js';
|
|
4
|
-
import '../constants-
|
|
4
|
+
import '../constants-Dv6ZqA6s.js';
|
|
5
5
|
import '../strands/ir_types.js';
|
|
6
6
|
import '../dom/p5.Element.js';
|
|
7
7
|
import '../dom/p5.File.js';
|
|
8
8
|
import '../io/p5.XML.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
11
|
-
import '../p5.Renderer-
|
|
11
|
+
import '../p5.Renderer-XOvhEbJn.js';
|
|
12
12
|
import '../image/filters.js';
|
|
13
13
|
import '../shape/custom_shapes.js';
|
|
14
14
|
import '../core/States.js';
|
package/dist/webgl/loading.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Geometry } from './p5.Geometry.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { d as request } from '../rendering-
|
|
4
|
-
import '../constants-
|
|
3
|
+
import { d as request } from '../rendering-C5lX6zKm.js';
|
|
4
|
+
import '../constants-Dv6ZqA6s.js';
|
|
5
5
|
import './p5.DataArray.js';
|
|
6
6
|
import '../io/utilities.js';
|
|
7
7
|
import '../creating_reading-DLkHH80h.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-XOvhEbJn.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../shape/custom_shapes.js';
|
|
17
17
|
import '../core/States.js';
|
package/dist/webgl/material.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { m as default } from '../rendering-
|
|
1
|
+
import '../constants-Dv6ZqA6s.js';
|
|
2
|
+
export { m as default } from '../rendering-C5lX6zKm.js';
|
|
3
3
|
import './p5.Shader.js';
|
|
4
4
|
import '../creating_reading-DLkHH80h.js';
|
|
5
5
|
import '../strands/ir_types.js';
|
|
@@ -8,7 +8,7 @@ import '../dom/p5.File.js';
|
|
|
8
8
|
import '../io/p5.XML.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
11
|
-
import '../p5.Renderer-
|
|
11
|
+
import '../p5.Renderer-XOvhEbJn.js';
|
|
12
12
|
import '../image/filters.js';
|
|
13
13
|
import '../math/p5.Vector.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
package/dist/webgl/p5.Camera.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
4
|
+
export { C as Camera, c as default } from '../rendering-C5lX6zKm.js';
|
|
5
5
|
import '../math/Matrices/Matrix.js';
|
|
6
|
-
import '../constants-
|
|
6
|
+
import '../constants-Dv6ZqA6s.js';
|
|
7
7
|
import '../math/Matrices/MatrixInterface.js';
|
|
8
8
|
import '../creating_reading-DLkHH80h.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
@@ -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-XOvhEbJn.js';
|
|
16
16
|
import '../image/filters.js';
|
|
17
17
|
import '../shape/custom_shapes.js';
|
|
18
18
|
import '../core/States.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-Dv6ZqA6s.js';
|
|
2
2
|
import '../creating_reading-DLkHH80h.js';
|
|
3
|
-
export { w as Framebuffer, v as FramebufferCamera, F as FramebufferTexture, b as default } from '../rendering-
|
|
3
|
+
export { w as Framebuffer, v as FramebufferCamera, F as FramebufferTexture, b as default } from '../rendering-C5lX6zKm.js';
|
|
4
4
|
import 'colorjs.io/fn';
|
|
5
5
|
import '../color/color_spaces/hsb.js';
|
|
6
6
|
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-XOvhEbJn.js';
|
|
11
11
|
import '../image/filters.js';
|
|
12
12
|
import '../math/p5.Vector.js';
|
|
13
13
|
import '../shape/custom_shapes.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a8 as FLAT, a9 as SMOOTH } from '../constants-
|
|
1
|
+
import { a8 as FLAT, a9 as SMOOTH } from '../constants-Dv6ZqA6s.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';
|
package/dist/webgl/p5.Quat.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ad as WEBGL, ab 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, n as CORNER, U as UNSIGNED_BYTE, g as LINEAR, aG as LINEAR_MIPMAP, a7 as TEXTURE, F as FLOAT, d as UNSIGNED_INT, H as HALF_FLOAT } from '../constants-
|
|
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-
|
|
1
|
+
import { ad as WEBGL, ab 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, n as CORNER, U as UNSIGNED_BYTE, g as LINEAR, aG as LINEAR_MIPMAP, a7 as TEXTURE, F as FLOAT, d as UNSIGNED_INT, H as HALF_FLOAT } from '../constants-Dv6ZqA6s.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-C5lX6zKm.js';
|
|
3
3
|
import { getStrokeDefs } from './enums.js';
|
|
4
4
|
import { Shader } from './p5.Shader.js';
|
|
5
5
|
import { R as RGB, h as RGBA } from '../creating_reading-DLkHH80h.js';
|
|
6
|
-
import { I as Image } from '../p5.Renderer-
|
|
6
|
+
import { I as Image } from '../p5.Renderer-XOvhEbJn.js';
|
|
7
7
|
import { g as glslBackend } from '../strands_glslBackend-D6G3UyCs.js';
|
|
8
8
|
import '../strands/ir_types.js';
|
|
9
9
|
import { getShaderHookTypes } from './shaderHookUtils.js';
|
package/dist/webgl/p5.Texture.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-Dv6ZqA6s.js';
|
|
2
2
|
import '../dom/p5.Element.js';
|
|
3
|
-
import '../p5.Renderer-
|
|
3
|
+
import '../p5.Renderer-XOvhEbJn.js';
|
|
4
4
|
import '../dom/p5.MediaElement.js';
|
|
5
|
-
export { M as MipmapTexture, T as Texture, t as default } from '../rendering-
|
|
5
|
+
export { M as MipmapTexture, T as Texture, t as default } from '../rendering-C5lX6zKm.js';
|
|
6
6
|
import '../dom/p5.File.js';
|
|
7
7
|
import '../io/p5.XML.js';
|
|
8
8
|
import '../creating_reading-DLkHH80h.js';
|
package/dist/webgl/text.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a7 as TEXTURE, c as TRIANGLES } from '../constants-
|
|
2
|
-
import { R as Renderer3D } from '../rendering-
|
|
1
|
+
import { a7 as TEXTURE, c as TRIANGLES } from '../constants-Dv6ZqA6s.js';
|
|
2
|
+
import { R as Renderer3D } from '../rendering-C5lX6zKm.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';
|
|
@@ -10,7 +10,7 @@ import '../strands/ir_types.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-
|
|
13
|
+
import '../p5.Renderer-XOvhEbJn.js';
|
|
14
14
|
import '../image/filters.js';
|
|
15
15
|
import '../shape/custom_shapes.js';
|
|
16
16
|
import '../core/States.js';
|
package/dist/webgl/utils.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-Dv6ZqA6s.js';
|
|
2
2
|
import '../strands/ir_types.js';
|
|
3
|
-
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-
|
|
3
|
+
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-C5lX6zKm.js';
|
|
4
4
|
import '../creating_reading-DLkHH80h.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.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-XOvhEbJn.js';
|
|
11
11
|
import '../image/filters.js';
|
|
12
12
|
import '../math/p5.Vector.js';
|
|
13
13
|
import '../shape/custom_shapes.js';
|
package/dist/webgpu/index.js
CHANGED
|
@@ -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-
|
|
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-Dv6ZqA6s.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';
|
package/lib/p5.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! p5.js v2.3.0
|
|
1
|
+
/*! p5.js v2.3.0 May 28, 2026 */
|
|
2
2
|
/**
|
|
3
3
|
* @module Constants
|
|
4
4
|
* @submodule Constants
|
|
@@ -12,7 +12,7 @@ const _PI = Math.PI;
|
|
|
12
12
|
* @property {String} VERSION
|
|
13
13
|
* @final
|
|
14
14
|
*/
|
|
15
|
-
const VERSION = '2.3.0
|
|
15
|
+
const VERSION = '2.3.0';
|
|
16
16
|
|
|
17
17
|
// GRAPHICS RENDERER
|
|
18
18
|
/**
|
|
@@ -20092,17 +20092,12 @@ class Vector {
|
|
|
20092
20092
|
}
|
|
20093
20093
|
|
|
20094
20094
|
/**
|
|
20095
|
-
* Sets the vector
|
|
20095
|
+
* Sets the the vector to a new value.
|
|
20096
20096
|
*
|
|
20097
20097
|
* `set()` can use separate numbers, as in `v.set(1, 2, 3)`, a
|
|
20098
20098
|
* <a href="#/p5.Vector">p5.Vector</a> object, as in `v.set(v2)`, or an
|
|
20099
20099
|
* array of numbers, as in `v.set([1, 2, 3])`.
|
|
20100
20100
|
*
|
|
20101
|
-
* If a value isn't provided for a component, it will be set to 0. For
|
|
20102
|
-
* example, `v.set(4, 5)` sets `v.x` to 4, `v.y` to 5, and `v.z` to 0.
|
|
20103
|
-
* Calling `set()` with no arguments, as in `v.set()`, sets all the vector's
|
|
20104
|
-
* components to 0.
|
|
20105
|
-
*
|
|
20106
20101
|
* @param {Number} [x] x component of the vector.
|
|
20107
20102
|
* @param {Number} [y] y component of the vector.
|
|
20108
20103
|
* @param {Number} [z] z component of the vector.
|
|
@@ -108388,7 +108383,7 @@ if (typeof p5 !== 'undefined') {
|
|
|
108388
108383
|
function _defaultEmptyVector(target){
|
|
108389
108384
|
return function(...args){
|
|
108390
108385
|
if(args.length === 0){
|
|
108391
|
-
this._friendlyError(
|
|
108386
|
+
this.constructor._friendlyError(
|
|
108392
108387
|
'In 1.x, createVector() was a shortcut for createVector(0, 0, 0). In 2.x, p5.js has vectors of any dimension, so you must provide your desired number of zeros. Use createVector(0, 0) for a 2D vector and createVector(0, 0, 0) for a 3D vector.',
|
|
108393
108388
|
'p5.createVector'
|
|
108394
108389
|
);
|
|
@@ -108430,7 +108425,7 @@ function _validatedVectorOperation(expectsSoloNumberArgument){
|
|
|
108430
108425
|
for (let i = 0; i < args.length; i++) {
|
|
108431
108426
|
const v = args[i];
|
|
108432
108427
|
if (typeof v !== 'number' || !Number.isFinite(v)) {
|
|
108433
|
-
if (!
|
|
108428
|
+
if (!this.friendlyErrorsDisabled()) {
|
|
108434
108429
|
this._friendlyError(
|
|
108435
108430
|
'Arguments contain non-finite numbers',
|
|
108436
108431
|
'p5.Vector'
|
|
@@ -108441,7 +108436,7 @@ function _validatedVectorOperation(expectsSoloNumberArgument){
|
|
|
108441
108436
|
}
|
|
108442
108437
|
} else {
|
|
108443
108438
|
if (typeof args !== 'number' || !Number.isFinite(args)) {
|
|
108444
|
-
if (!
|
|
108439
|
+
if (!this.friendlyErrorsDisabled()) {
|
|
108445
108440
|
this._friendlyError(
|
|
108446
108441
|
'Arguments contain non-finite numbers',
|
|
108447
108442
|
'p5.Vector'
|