p5 2.3.1-rc.1 → 2.3.1-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.
- 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/creating_reading.js +1 -1
- package/dist/color/index.js +2 -2
- package/dist/color/p5.Color.js +1 -1
- package/dist/color/setting.js +10 -10
- package/dist/{constants-Bx3_xAam.js → constants-DkQDfqzw.js} +8 -8
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +3 -3
- 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 +489 -466
- 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 +4 -4
- package/dist/core/p5.Renderer.js +3 -3
- package/dist/core/p5.Renderer2D.js +5 -5
- package/dist/core/p5.Renderer3D.js +4 -4
- package/dist/core/rendering.js +4 -4
- package/dist/{creating_reading-YUSK33h8.js → creating_reading-Dyt2y-6S.js} +17 -17
- package/dist/dom/dom.js +2 -2
- package/dist/dom/index.js +2 -2
- package/dist/dom/p5.Element.js +2 -2
- package/dist/dom/p5.MediaElement.js +2 -2
- package/dist/image/const.js +1 -1
- package/dist/image/filterRenderer2D.js +4 -4
- package/dist/image/image.js +4 -4
- package/dist/image/index.js +4 -4
- package/dist/image/loading_displaying.js +4 -4
- package/dist/image/p5.Image.js +3 -3
- package/dist/io/files.js +4 -4
- package/dist/io/index.js +4 -4
- package/dist/{main-BpW7VbDr.js → main-CAqj0AHr.js} +6 -6
- 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 +1 -1
- package/dist/math/patch-vector.js +1 -1
- package/dist/math/trigonometry.js +1 -1
- package/dist/{p5.Renderer-op0Y1WO6.js → p5.Renderer-Bf-YLpi6.js} +2 -2
- package/dist/{rendering-SZ71KIDM.js → rendering-BowMW0pZ.js} +12 -8
- package/dist/shape/2d_primitives.js +1 -1
- package/dist/shape/attributes.js +1 -1
- package/dist/shape/custom_shapes.js +2 -2
- package/dist/shape/index.js +2 -2
- package/dist/type/index.js +3 -3
- package/dist/type/p5.Font.js +3 -3
- package/dist/type/textCore.js +3 -3
- package/dist/webgl/3d_primitives.js +4 -4
- package/dist/webgl/GeometryBuilder.js +1 -1
- package/dist/webgl/ShapeBuilder.js +50 -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 +4 -4
- package/dist/webgl/loading.js +4 -4
- package/dist/webgl/material.js +4 -4
- package/dist/webgl/p5.Camera.js +4 -4
- package/dist/webgl/p5.Framebuffer.js +4 -4
- package/dist/webgl/p5.Geometry.js +1 -1
- package/dist/webgl/p5.Quat.js +1 -1
- package/dist/webgl/p5.RendererGL.js +18 -7
- package/dist/webgl/p5.Texture.js +4 -4
- package/dist/webgl/text.js +4 -4
- package/dist/webgl/utils.js +4 -4
- package/dist/webgpu/index.js +1 -1
- package/dist/webgpu/p5.RendererWebGPU.js +5 -1
- package/lib/p5.esm.js +596 -509
- package/lib/p5.esm.min.js +1 -1
- package/lib/p5.js +596 -509
- package/lib/p5.min.js +1 -1
- package/lib/p5.webgpu.esm.js +11 -7
- package/lib/p5.webgpu.js +11 -7
- package/lib/p5.webgpu.min.js +1 -1
- package/package.json +1 -1
- package/types/global.d.ts +274 -274
- package/types/p5.d.ts +143 -143
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import color_conversion from '../color/color_conversion.js';
|
|
2
|
-
import '../main-
|
|
3
|
-
import '../constants-
|
|
2
|
+
import '../main-CAqj0AHr.js';
|
|
3
|
+
import '../constants-DkQDfqzw.js';
|
|
4
4
|
import '../core/transform.js';
|
|
5
5
|
import '../core/structure.js';
|
|
6
6
|
import '../core/environment.js';
|
|
7
|
-
import '../rendering-
|
|
8
|
-
import '../creating_reading-
|
|
7
|
+
import '../rendering-BowMW0pZ.js';
|
|
8
|
+
import '../creating_reading-Dyt2y-6S.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
11
11
|
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-Bf-YLpi6.js';
|
|
16
16
|
import '../image/filters.js';
|
|
17
17
|
import '../math/p5.Vector.js';
|
|
18
18
|
import '../shape/custom_shapes.js';
|
|
@@ -4,20 +4,20 @@ 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-CAqj0AHr.js';
|
|
8
|
+
import '../constants-DkQDfqzw.js';
|
|
9
9
|
import '../core/transform.js';
|
|
10
10
|
import '../core/structure.js';
|
|
11
11
|
import '../core/environment.js';
|
|
12
|
-
import '../rendering-
|
|
13
|
-
import '../creating_reading-
|
|
12
|
+
import '../rendering-BowMW0pZ.js';
|
|
13
|
+
import '../creating_reading-Dyt2y-6S.js';
|
|
14
14
|
import 'colorjs.io/fn';
|
|
15
15
|
import '../color/color_spaces/hsb.js';
|
|
16
16
|
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-Bf-YLpi6.js';
|
|
21
21
|
import '../image/filters.js';
|
|
22
22
|
import '../math/p5.Vector.js';
|
|
23
23
|
import '../shape/custom_shapes.js';
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as p5 } from './main-
|
|
1
|
+
import { p as p5 } from './main-CAqj0AHr.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,19 +15,19 @@ 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-DkQDfqzw.js';
|
|
19
19
|
import './core/transform.js';
|
|
20
20
|
import './core/structure.js';
|
|
21
21
|
import './core/environment.js';
|
|
22
|
-
import './rendering-
|
|
23
|
-
import './creating_reading-
|
|
22
|
+
import './rendering-BowMW0pZ.js';
|
|
23
|
+
import './creating_reading-Dyt2y-6S.js';
|
|
24
24
|
import 'colorjs.io/fn';
|
|
25
25
|
import './color/color_spaces/hsb.js';
|
|
26
26
|
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-Bf-YLpi6.js';
|
|
31
31
|
import './image/filters.js';
|
|
32
32
|
import './math/p5.Vector.js';
|
|
33
33
|
import './shape/custom_shapes.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-CAqj0AHr.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,19 +12,19 @@ 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-DkQDfqzw.js';
|
|
16
16
|
import './core/transform.js';
|
|
17
17
|
import './core/structure.js';
|
|
18
18
|
import './core/environment.js';
|
|
19
|
-
import './rendering-
|
|
20
|
-
import './creating_reading-
|
|
19
|
+
import './rendering-BowMW0pZ.js';
|
|
20
|
+
import './creating_reading-Dyt2y-6S.js';
|
|
21
21
|
import 'colorjs.io/fn';
|
|
22
22
|
import './color/color_spaces/hsb.js';
|
|
23
23
|
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-Bf-YLpi6.js';
|
|
28
28
|
import './image/filters.js';
|
|
29
29
|
import './math/p5.Vector.js';
|
|
30
30
|
import './shape/custom_shapes.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
2
|
-
import '../constants-
|
|
1
|
+
import { p as p5 } from '../main-CAqj0AHr.js';
|
|
2
|
+
import '../constants-DkQDfqzw.js';
|
|
3
3
|
import '../core/transform.js';
|
|
4
4
|
import '../core/structure.js';
|
|
5
5
|
import '../core/environment.js';
|
|
6
|
-
import '../rendering-
|
|
7
|
-
import '../creating_reading-
|
|
6
|
+
import '../rendering-BowMW0pZ.js';
|
|
7
|
+
import '../creating_reading-Dyt2y-6S.js';
|
|
8
8
|
import 'colorjs.io/fn';
|
|
9
9
|
import './color_spaces/hsb.js';
|
|
10
10
|
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-Bf-YLpi6.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../math/p5.Vector.js';
|
|
17
17
|
import '../shape/custom_shapes.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH, R as RGB, h as RGBA, b as
|
|
1
|
+
export { H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH, R as RGB, h as RGBA, b as RGBP3, c as default } from '../creating_reading-Dyt2y-6S.js';
|
|
2
2
|
import 'colorjs.io/fn';
|
|
3
3
|
import './color_spaces/hsb.js';
|
package/dist/color/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as creatingReading, a as color$1 } from '../creating_reading-
|
|
1
|
+
import { c as creatingReading, a as color$1 } from '../creating_reading-Dyt2y-6S.js';
|
|
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-DkQDfqzw.js';
|
|
6
6
|
|
|
7
7
|
function color(p5){
|
|
8
8
|
p5.registerAddon(creatingReading);
|
package/dist/color/p5.Color.js
CHANGED
package/dist/color/setting.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a1 as NORMAL, B as BLEND } from '../constants-
|
|
2
|
-
import { R as RGB, b as
|
|
1
|
+
import { a1 as NORMAL, B as BLEND } from '../constants-DkQDfqzw.js';
|
|
2
|
+
import { R as RGB, b as RGBP3, H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH } from '../creating_reading-Dyt2y-6S.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import './color_spaces/hsb.js';
|
|
5
5
|
|
|
@@ -673,9 +673,9 @@ function setting(p5, fn){
|
|
|
673
673
|
*
|
|
674
674
|
* Some additional color modes that p5.js supports are:
|
|
675
675
|
*
|
|
676
|
-
* `
|
|
676
|
+
* `RGBP3` - High Dynamic Range RGB defined within the Display P3 color space.
|
|
677
677
|
* Colors are expressed with an extended dynamic range. To render these colors
|
|
678
|
-
* accurately, you must use the
|
|
678
|
+
* accurately, you must use the P3 canvas.
|
|
679
679
|
*
|
|
680
680
|
* `HWB` - Hue, Whiteness, Blackness.
|
|
681
681
|
* Similar to HSB and HSL, this mode uses a hue angle.
|
|
@@ -723,10 +723,10 @@ function setting(p5, fn){
|
|
|
723
723
|
* ranges are currently not handled, so results in those cases may be ambiguous.
|
|
724
724
|
*
|
|
725
725
|
* @method colorMode
|
|
726
|
-
* @param {RGB|HSB|HSL|
|
|
726
|
+
* @param {RGB|HSB|HSL|RGBP3|HWB|LAB|LCH|OKLAB|OKLCH} mode either RGB, HSB, HSL,
|
|
727
727
|
* or one of the extended modes described above.
|
|
728
728
|
* @param {Number} [max] range for all values.
|
|
729
|
-
* @return {RGB|HSB|HSL|
|
|
729
|
+
* @return {RGB|HSB|HSL|RGBP3|HWB|LAB|LCH|OKLAB|OKLCH} The current color mode.
|
|
730
730
|
*
|
|
731
731
|
* @example
|
|
732
732
|
* function setup() {
|
|
@@ -1019,7 +1019,7 @@ function setting(p5, fn){
|
|
|
1019
1019
|
*/
|
|
1020
1020
|
/**
|
|
1021
1021
|
* @method colorMode
|
|
1022
|
-
* @param {RGB|HSB|HSL|
|
|
1022
|
+
* @param {RGB|HSB|HSL|RGBP3|HWB|LAB|LCH|OKLAB|OKLCH} mode
|
|
1023
1023
|
* @param {Number} max1 range for the red or hue depending on the
|
|
1024
1024
|
* current color mode.
|
|
1025
1025
|
* @param {Number} max2 range for the green or saturation depending
|
|
@@ -1028,18 +1028,18 @@ function setting(p5, fn){
|
|
|
1028
1028
|
* depending on the current color mode.
|
|
1029
1029
|
* @param {Number} [maxA] range for the alpha.
|
|
1030
1030
|
*
|
|
1031
|
-
* @return {RGB|HSB|HSL|
|
|
1031
|
+
* @return {RGB|HSB|HSL|RGBP3|HWB|LAB|LCH|OKLAB|OKLCH} The current color mode.
|
|
1032
1032
|
*/
|
|
1033
1033
|
/**
|
|
1034
1034
|
* @method colorMode
|
|
1035
|
-
* @return {RGB|HSB|HSL|
|
|
1035
|
+
* @return {RGB|HSB|HSL|RGBP3|HWB|LAB|LCH|OKLAB|OKLCH} The current color mode.
|
|
1036
1036
|
*/
|
|
1037
1037
|
fn.colorMode = function(mode, max1, max2, max3, maxA) {
|
|
1038
1038
|
// p5._validateParameters('colorMode', arguments);
|
|
1039
1039
|
if (
|
|
1040
1040
|
[
|
|
1041
1041
|
RGB,
|
|
1042
|
-
|
|
1042
|
+
RGBP3,
|
|
1043
1043
|
HSB,
|
|
1044
1044
|
HSL,
|
|
1045
1045
|
HWB,
|
|
@@ -11,7 +11,7 @@ const _PI = Math.PI;
|
|
|
11
11
|
* @property {String} VERSION
|
|
12
12
|
* @final
|
|
13
13
|
*/
|
|
14
|
-
const VERSION = '2.3.1-rc.
|
|
14
|
+
const VERSION = '2.3.1-rc.2';
|
|
15
15
|
|
|
16
16
|
// GRAPHICS RENDERER
|
|
17
17
|
/**
|
|
@@ -27,18 +27,18 @@ const VERSION = '2.3.1-rc.1';
|
|
|
27
27
|
const P2D = 'p2d';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* An expanded color space (P3) variant of the default, two-dimensional renderer.
|
|
31
31
|
*
|
|
32
32
|
* When available, this mode can allow for extended color ranges and more
|
|
33
33
|
* dynamic color representation. Use it similarly to `P2D`:
|
|
34
|
-
* `createCanvas(400, 400,
|
|
34
|
+
* `createCanvas(400, 400, P2DP3)`.
|
|
35
35
|
*
|
|
36
|
-
* @typedef {'p2d-
|
|
37
|
-
* @property {
|
|
36
|
+
* @typedef {'p2d-p3'} P2DP3
|
|
37
|
+
* @property {P2DP3} P2DP3
|
|
38
38
|
* @final
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
|
-
const
|
|
41
|
+
const P2DP3 = 'p2d-p3';
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* One of the two render modes in p5.js, used for computationally intensive tasks like 3D rendering and shaders.
|
|
@@ -1339,7 +1339,7 @@ var constants = /*#__PURE__*/Object.freeze({
|
|
|
1339
1339
|
OPTION: OPTION,
|
|
1340
1340
|
OVERLAY: OVERLAY,
|
|
1341
1341
|
P2D: P2D,
|
|
1342
|
-
|
|
1342
|
+
P2DP3: P2DP3,
|
|
1343
1343
|
PATH: PATH,
|
|
1344
1344
|
PI: PI,
|
|
1345
1345
|
PIE: PIE,
|
|
@@ -1395,4 +1395,4 @@ var constants = /*#__PURE__*/Object.freeze({
|
|
|
1395
1395
|
_DEFAULT_TEXT_FILL: _DEFAULT_TEXT_FILL
|
|
1396
1396
|
});
|
|
1397
1397
|
|
|
1398
|
-
export { CHORD as $, ADD as A, BLEND as B, CLAMP as C, DARKEST as D, EXCLUSION as E, FLOAT as F, EMPTY_PATH as G, HALF_FLOAT as H, INCLUDE as I, CLOSE as J, POINTS as K, LIGHTEST as L, MULTIPLY as M, NEAREST as N, OPEN as O, P2D as P, LINES as Q, REPLACE as R, SUBTRACT as S, TRIANGLE_STRIP as T, UNSIGNED_BYTE as U, QUADS as V, WEBGPU as W, TRIANGLE_FAN as X, QUAD_STRIP as Y, EXCLUDE as Z, JOIN as _, SCREEN as a, ITALIC as a$, PIE as a0, NORMAL as a1, AUTO as a2, RAD_TO_DEG as a3, DEG_TO_RAD as a4, GRID as a5, AXES as a6, TEXTURE as a7, FLAT as a8, SMOOTH as a9, WORD as aA, COVER as aB, CONTAIN as aC, FILL as aD, SIMPLE as aE, FULL as aF, LINEAR_MIPMAP as aG,
|
|
1398
|
+
export { CHORD as $, ADD as A, BLEND as B, CLAMP as C, DARKEST as D, EXCLUSION as E, FLOAT as F, EMPTY_PATH as G, HALF_FLOAT as H, INCLUDE as I, CLOSE as J, POINTS as K, LIGHTEST as L, MULTIPLY as M, NEAREST as N, OPEN as O, P2D as P, LINES as Q, REPLACE as R, SUBTRACT as S, TRIANGLE_STRIP as T, UNSIGNED_BYTE as U, QUADS as V, WEBGPU as W, TRIANGLE_FAN as X, QUAD_STRIP as Y, EXCLUDE as Z, JOIN as _, SCREEN as a, ITALIC as a$, PIE as a0, NORMAL as a1, AUTO as a2, RAD_TO_DEG as a3, DEG_TO_RAD as a4, GRID as a5, AXES as a6, TEXTURE as a7, FLAT as a8, SMOOTH as a9, WORD as aA, COVER as aB, CONTAIN as aC, FILL as aD, SIMPLE as aE, FULL as aF, LINEAR_MIPMAP as aG, P2DP3 as aH, QUARTER_PI as aI, TAU as aJ, LINE_STRIP as aK, LINE_LOOP as aL, TESS as aM, ALT as aN, BACKSPACE as aO, CONTROL as aP, DELETE as aQ, DOWN_ARROW as aR, ENTER as aS, ESCAPE as aT, LEFT_ARROW as aU, OPTION as aV, RETURN as aW, RIGHT_ARROW as aX, SHIFT as aY, TAB as aZ, UP_ARROW as a_, RIGHT as aa, WEBGL2 as ab, BLUR as ac, WEBGL as ad, IMAGE as ae, THRESHOLD as af, POSTERIZE as ag, OPAQUE as ah, DILATE as ai, ERODE as aj, INVERT as ak, GRAY as al, constants as am, _DEFAULT_FILL as an, _DEFAULT_STROKE as ao, DIFFERENCE as ap, OVERLAY as aq, HARD_LIGHT as ar, SOFT_LIGHT as as, DODGE as at, BURN as au, LEFT as av, BOTTOM as aw, BASELINE as ax, TOP as ay, VERSION as az, REMOVE as b, BOLD as b0, BOLDITALIC as b1, CHAR as b2, _DEFAULT_TEXT_FILL as b3, _DEFAULT_LEADMULT as b4, _CTX_MIDDLE as b5, QUADRATIC as b6, BEZIER as b7, CURVE as b8, STROKE as b9, IMMEDIATE as ba, LANDSCAPE as bb, PORTRAIT as bc, LABEL as bd, FALLBACK as be, TRIANGLES as c, UNSIGNED_INT as d, MIRROR as e, REPEAT as f, LINEAR as g, ARROW as h, CROSS as i, HAND as j, MOVE as k, TEXT as l, WAIT as m, CORNER as n, TWO_PI as o, HALF_PI as p, PI as q, CORNERS as r, RADIUS as s, CENTER as t, ROUND as u, SQUARE as v, PROJECT as w, BEVEL as x, MITER as y, PATH as z };
|
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
|
|
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 P2DP3, 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-DkQDfqzw.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-DkQDfqzw.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Environment
|
|
@@ -217,7 +217,7 @@ function environment(p5, fn, lifecycles){
|
|
|
217
217
|
* cursor, `x` and `y` set the location pointed to within the image. They are
|
|
218
218
|
* both 0 by default, so the cursor points to the image's top-left corner. `x`
|
|
219
219
|
* and `y` must be less than the image's width and height, respectively.
|
|
220
|
-
*
|
|
220
|
+
*
|
|
221
221
|
* Calling `cursor()` without an argument returns the current cursor type as a string.
|
|
222
222
|
*
|
|
223
223
|
* @method cursor
|
|
@@ -495,7 +495,7 @@ function environment(p5, fn, lifecycles){
|
|
|
495
495
|
* - `WEBGL2` whose value is `'webgl2'`,
|
|
496
496
|
* - `WEBGL` whose value is `'webgl'`, or
|
|
497
497
|
* - `P2D` whose value is `'p2d'`. This is the default for 2D sketches.
|
|
498
|
-
* - `
|
|
498
|
+
* - `P2DP3` whose value is `'p2d-p3'` (used for P3 2D sketches, if available).
|
|
499
499
|
*
|
|
500
500
|
* See <a href="#/p5/setAttributes">setAttributes()</a> for ways to set the
|
|
501
501
|
* WebGL version.
|
|
@@ -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-DkQDfqzw.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-DkQDfqzw.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-DkQDfqzw.js';
|
|
10
10
|
import './browser_errors.js';
|
|
11
11
|
import 'zod/v4';
|
|
12
12
|
import 'acorn';
|