p5 2.0.1 → 2.0.3
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/describe.js +10 -0
- package/dist/accessibility/index.js +5 -5
- package/dist/accessibility/outputs.js +21 -0
- package/dist/app.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 +2 -2
- package/dist/{constants-C-g_eAdC.js → constants-BRcElHU3.js} +19 -3
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +6 -5
- package/dist/core/friendly_errors/fes_core.js +1 -1
- package/dist/core/friendly_errors/index.js +1 -1
- package/dist/core/friendly_errors/param_validator.js +46 -93
- package/dist/core/friendly_errors/sketch_reader.js +5 -5
- package/dist/core/friendly_errors/sketch_verifier.js +1 -1
- package/dist/core/friendly_errors/validate_params.js +5 -5
- package/dist/core/helpers.js +1 -1
- package/dist/core/init.js +5 -5
- 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/rendering.js +4 -4
- package/dist/{creating_reading-D4AAKRbx.js → creating_reading-Cr8L2Jnm.js} +2 -2
- package/dist/dom/dom.js +10 -10
- 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/events/acceleration.js +24 -24
- package/dist/events/keyboard.js +11 -6
- 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/image/pixels.js +1 -0
- package/dist/io/files.js +4 -4
- package/dist/io/index.js +4 -4
- package/dist/io/p5.TableRow.js +2 -2
- package/dist/{main-s72KWcUy.js → main-BKN5yFoS.js} +12 -9
- 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 +1 -1
- package/dist/math/p5.Matrix.js +1 -1
- package/dist/math/p5.Vector.js +1 -1
- package/dist/math/trigonometry.js +1 -1
- package/dist/{p5.Renderer-CwAYZOC2.js → p5.Renderer-R23xoC7s.js} +5 -5
- package/dist/{rendering--aAe5aq3.js → rendering-CvUVN-Vb.js} +101 -66
- 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 -5
- package/dist/type/textCore.js +4 -4
- package/dist/webgl/3d_primitives.js +4 -4
- package/dist/webgl/GeometryBuilder.js +1 -1
- package/dist/webgl/ShapeBuilder.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 +5 -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 +4 -4
- package/dist/webgl/p5.Shader.js +4 -4
- package/dist/webgl/p5.Texture.js +4 -4
- package/dist/webgl/text.js +32 -34
- package/lib/p5.esm.js +289 -247
- package/lib/p5.js +289 -247
- package/lib/p5.min.js +1 -1
- package/package.json +1 -2
- package/types/accessibility/color_namer.d.ts +8 -0
- package/types/accessibility/describe.d.ts +184 -0
- package/types/accessibility/gridOutput.d.ts +8 -0
- package/types/accessibility/outputs.d.ts +235 -0
- package/types/accessibility/textOutput.d.ts +8 -0
- package/types/color/color_conversion.d.ts +47 -0
- package/types/color/creating_reading.d.ts +1348 -0
- package/types/color/p5.Color.d.ts +1070 -0
- package/types/color/setting.d.ts +2085 -0
- package/types/core/constants.d.ts +341 -0
- package/types/core/environment.d.ts +668 -0
- package/types/core/friendly_errors/fes_core.d.ts +8 -0
- package/types/core/friendly_errors/file_errors.d.ts +8 -0
- package/types/core/friendly_errors/param_validator.d.ts +30 -0
- package/types/core/friendly_errors/sketch_reader.d.ts +8 -0
- package/types/core/friendly_errors/stacktrace.d.ts +11 -0
- package/types/core/friendly_errors/validate_params.d.ts +8 -0
- package/types/core/helpers.d.ts +8 -0
- package/types/core/legacy.d.ts +8 -0
- package/types/core/main.d.ts +5999 -0
- package/types/core/p5.Graphics.d.ts +484 -0
- package/types/core/p5.Renderer.d.ts +14 -0
- package/types/core/reference.d.ts +8 -0
- package/types/core/rendering.d.ts +481 -0
- package/types/core/structure.d.ts +492 -0
- package/types/core/transform.d.ts +1638 -0
- package/types/data/local_storage.d.ts +323 -0
- package/types/dom/dom.d.ts +1295 -0
- package/types/dom/p5.Element.d.ts +2011 -0
- package/types/dom/p5.File.d.ts +13 -0
- package/types/dom/p5.MediaElement.d.ts +1249 -0
- package/types/events/acceleration.d.ts +193 -0
- package/types/events/keyboard.d.ts +501 -0
- package/types/events/pointer.d.ts +782 -0
- package/types/global.d.ts +5544 -0
- package/types/image/filterRenderer2D.d.ts +54 -0
- package/types/image/image.d.ts +326 -0
- package/types/image/loading_displaying.d.ts +580 -0
- package/types/image/p5.Image.d.ts +5882 -0
- package/types/image/pixels.d.ts +832 -0
- package/types/io/files.d.ts +1447 -0
- package/types/io/p5.Table.d.ts +1247 -0
- package/types/io/p5.TableRow.d.ts +343 -0
- package/types/io/p5.XML.d.ts +1188 -0
- package/types/math/Matrices/Matrix.d.ts +1029 -0
- package/types/math/Matrices/MatrixNumjs.d.ts +8 -0
- package/types/math/calculation.d.ts +923 -0
- package/types/math/math.d.ts +90 -0
- package/types/math/noise.d.ts +311 -0
- package/types/math/p5.Matrix.d.ts +8 -0
- package/types/math/p5.Vector.d.ts +3416 -0
- package/types/math/random.d.ts +267 -0
- package/types/math/trigonometry.d.ts +663 -0
- package/types/p5.d.ts +6666 -0
- package/types/shape/2d_primitives.d.ts +1033 -0
- package/types/shape/attributes.d.ts +466 -0
- package/types/shape/curves.d.ts +740 -0
- package/types/shape/custom_shapes.d.ts +888 -0
- package/types/shape/vertex.d.ts +1141 -0
- package/types/type/p5.Font.d.ts +575 -0
- package/types/type/textCore.d.ts +1198 -0
- package/types/utilities/conversion.d.ts +894 -0
- package/types/utilities/time_date.d.ts +295 -0
- package/types/utilities/utility_functions.d.ts +587 -0
- package/types/webgl/3d_primitives.d.ts +1432 -0
- package/types/webgl/ShaderGenerator.d.ts +8 -0
- package/types/webgl/interaction.d.ts +371 -0
- package/types/webgl/light.d.ts +1184 -0
- package/types/webgl/loading.d.ts +482 -0
- package/types/webgl/material.d.ts +2656 -0
- package/types/webgl/p5.Camera.d.ts +3023 -0
- package/types/webgl/p5.DataArray.d.ts +61 -0
- package/types/webgl/p5.Framebuffer.d.ts +760 -0
- package/types/webgl/p5.Geometry.d.ts +1191 -0
- package/types/webgl/p5.Quat.d.ts +45 -0
- package/types/webgl/p5.RendererGL.d.ts +234 -0
- package/types/webgl/p5.Shader.d.ts +660 -0
- package/types/webgl/p5.Texture.d.ts +61 -0
- package/types/webgl/text.d.ts +74 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Color } from './creating_reading-
|
|
2
|
-
import { N as NORMAL, am as WORD, an as BASELINE, ao as LEFT, C as CENTER, e as CORNER, I as INCLUDE } from './constants-
|
|
1
|
+
import { C as Color } from './creating_reading-Cr8L2Jnm.js';
|
|
2
|
+
import { N as NORMAL, am as WORD, an as BASELINE, ao as LEFT, C as CENTER, e as CORNER, I as INCLUDE } from './constants-BRcElHU3.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';
|
|
@@ -1633,7 +1633,7 @@ class Image {
|
|
|
1633
1633
|
*
|
|
1634
1634
|
* async function setup() {
|
|
1635
1635
|
* // Load the image.
|
|
1636
|
-
* gif = await loadImage('assets/arnott-wallace-
|
|
1636
|
+
* gif = await loadImage('assets/arnott-wallace-eye-loop-forever.gif');
|
|
1637
1637
|
*
|
|
1638
1638
|
* createCanvas(100, 100);
|
|
1639
1639
|
*
|
|
@@ -1673,7 +1673,7 @@ class Image {
|
|
|
1673
1673
|
*
|
|
1674
1674
|
* async function setup() {
|
|
1675
1675
|
* // Load the image.
|
|
1676
|
-
* gif = await loadImage('assets/arnott-wallace-
|
|
1676
|
+
* gif = await loadImage('assets/arnott-wallace-eye-loop-forever.gif');
|
|
1677
1677
|
*
|
|
1678
1678
|
* createCanvas(100, 100);
|
|
1679
1679
|
*
|
|
@@ -1729,7 +1729,7 @@ class Image {
|
|
|
1729
1729
|
*
|
|
1730
1730
|
* async function setup() {
|
|
1731
1731
|
* // Load the image.
|
|
1732
|
-
* gif = await loadImage('assets/arnott-wallace-
|
|
1732
|
+
* gif = await loadImage('assets/arnott-wallace-eye-loop-forever.gif');
|
|
1733
1733
|
*
|
|
1734
1734
|
* createCanvas(100, 100);
|
|
1735
1735
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as CORNER, i as CORNERS, C as CENTER, ap as COVER, aq as CONTAIN, R as RIGHT, ar as BOTTOM, u as BLEND, as as FILL, a1 as IMAGE, at as CLAMP, z as WEBGL2, j as ROUND, o as POINTS, L as LINES, p as TRIANGLES, a0 as WEBGL, $ as BLUR, a6 as DARKEST, a7 as LIGHTEST, ai as ADD, a5 as SUBTRACT, ab as SCREEN, aa as EXCLUSION, ac as REPLACE, a9 as MULTIPLY, a4 as REMOVE, ah as BURN, ad as OVERLAY, ae as HARD_LIGHT, af as SOFT_LIGHT, ag as DODGE, au as UNSIGNED_INT, av as UNSIGNED_BYTE, Z as THRESHOLD, _ as INVERT, K as OPAQUE, U as POSTERIZE, V as DILATE, Y as ERODE, X as GRAY, v as constants, aw as SIMPLE, ax as FULL, f as TWO_PI, O as OPEN, N as NORMAL, n as CLOSE, aj as PIE, ak as CHORD, T as TEXTURE, P as P2D, ay as NEAREST, az as REPEAT, aA as MIRROR, aB as FLOAT, aC as LINEAR, aD as HALF_FLOAT } from './constants-
|
|
2
|
-
import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-
|
|
1
|
+
import { e as CORNER, i as CORNERS, C as CENTER, ap as COVER, aq as CONTAIN, R as RIGHT, ar as BOTTOM, u as BLEND, as as FILL, a1 as IMAGE, at as CLAMP, z as WEBGL2, j as ROUND, o as POINTS, L as LINES, p as TRIANGLES, a0 as WEBGL, $ as BLUR, a6 as DARKEST, a7 as LIGHTEST, ai as ADD, a5 as SUBTRACT, ab as SCREEN, aa as EXCLUSION, ac as REPLACE, a9 as MULTIPLY, a4 as REMOVE, ah as BURN, ad as OVERLAY, ae as HARD_LIGHT, af as SOFT_LIGHT, ag as DODGE, au as UNSIGNED_INT, av as UNSIGNED_BYTE, Z as THRESHOLD, _ as INVERT, K as OPAQUE, U as POSTERIZE, V as DILATE, Y as ERODE, X as GRAY, v as constants, aw as SIMPLE, ax as FULL, f as TWO_PI, O as OPEN, N as NORMAL, n as CLOSE, aj as PIE, ak as CHORD, T as TEXTURE, P as P2D, ay as NEAREST, az as REPEAT, aA as MIRROR, aB as FLOAT, aC as LINEAR, aD as HALF_FLOAT } from './constants-BRcElHU3.js';
|
|
2
|
+
import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-Cr8L2Jnm.js';
|
|
3
3
|
import { Element } from './dom/p5.Element.js';
|
|
4
|
-
import { R as Renderer, I as Image } from './p5.Renderer-
|
|
4
|
+
import { R as Renderer, I as Image } from './p5.Renderer-R23xoC7s.js';
|
|
5
5
|
import './dom/p5.MediaElement.js';
|
|
6
6
|
import primitives from './shape/2d_primitives.js';
|
|
7
7
|
import attributes from './shape/attributes.js';
|
|
@@ -1700,7 +1700,7 @@ function files(p5, fn){
|
|
|
1700
1700
|
* }
|
|
1701
1701
|
*
|
|
1702
1702
|
* function mousePressed() {
|
|
1703
|
-
* httpPost(url, 'json',
|
|
1703
|
+
* httpPost(url, postData, 'json', function(result) {
|
|
1704
1704
|
* strokeWeight(2);
|
|
1705
1705
|
* text(result.body, mouseX, mouseY);
|
|
1706
1706
|
* });
|
|
@@ -1720,8 +1720,8 @@ function files(p5, fn){
|
|
|
1720
1720
|
* function mousePressed() {
|
|
1721
1721
|
* httpPost(
|
|
1722
1722
|
* url,
|
|
1723
|
-
* 'json',
|
|
1724
1723
|
* postData,
|
|
1724
|
+
* 'json',
|
|
1725
1725
|
* function(result) {
|
|
1726
1726
|
* // ... won't be called
|
|
1727
1727
|
* },
|
|
@@ -1839,20 +1839,29 @@ function files(p5, fn){
|
|
|
1839
1839
|
* let eqFeatureIndex = 0;
|
|
1840
1840
|
*
|
|
1841
1841
|
* function setup() {
|
|
1842
|
+
* createCanvas(100,100);
|
|
1843
|
+
*
|
|
1842
1844
|
* let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson';
|
|
1845
|
+
*
|
|
1846
|
+
* const req = new Request(url, {
|
|
1847
|
+
* method: 'GET',
|
|
1848
|
+
* headers: {authorization: 'Bearer secretKey'}
|
|
1849
|
+
* });
|
|
1850
|
+
* // httpDo(path, method, datatype, success, error)
|
|
1851
|
+
*
|
|
1843
1852
|
* httpDo(
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1853
|
+
* req,
|
|
1854
|
+
* 'GET',
|
|
1855
|
+
* 'json',
|
|
1856
|
+
* res => {
|
|
1857
|
+
* earthquakes = res;
|
|
1849
1858
|
* },
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
*
|
|
1853
|
-
*
|
|
1859
|
+
* err => {
|
|
1860
|
+
* console.error('Error loading data:', err);
|
|
1861
|
+
* }
|
|
1862
|
+
* );
|
|
1854
1863
|
* }
|
|
1855
|
-
*
|
|
1864
|
+
*
|
|
1856
1865
|
* function draw() {
|
|
1857
1866
|
* // wait until the data is loaded
|
|
1858
1867
|
* if (!earthquakes || !earthquakes.features[eqFeatureIndex]) {
|
|
@@ -3846,7 +3855,7 @@ function loadingDisplaying(p5, fn){
|
|
|
3846
3855
|
* are set to `CENTER`.
|
|
3847
3856
|
*
|
|
3848
3857
|
* @method image
|
|
3849
|
-
* @param {p5.Image|p5.Element|p5.Texture|p5.Framebuffer|p5.FramebufferTexture} img image to display.
|
|
3858
|
+
* @param {p5.Image|p5.Element|p5.Texture|p5.Framebuffer|p5.FramebufferTexture|p5.Renderer|p5.Graphics} img image to display.
|
|
3850
3859
|
* @param {Number} x x-coordinate of the top-left corner of the image.
|
|
3851
3860
|
* @param {Number} y y-coordinate of the top-left corner of the image.
|
|
3852
3861
|
* @param {Number} [width] width to draw the image.
|
|
@@ -4440,7 +4449,7 @@ class Camera {
|
|
|
4440
4449
|
* fill(0);
|
|
4441
4450
|
*
|
|
4442
4451
|
* // Display the value of eyeX, rounded to the nearest integer.
|
|
4443
|
-
* text(`eyeX: ${round(cam.eyeX)}`, 0,
|
|
4452
|
+
* text(`eyeX: ${round(cam.eyeX)}`, 0, 45);
|
|
4444
4453
|
* }
|
|
4445
4454
|
* </code>
|
|
4446
4455
|
* </div>
|
|
@@ -4458,9 +4467,6 @@ class Camera {
|
|
|
4458
4467
|
* // Create a p5.Camera object.
|
|
4459
4468
|
* cam = createCamera();
|
|
4460
4469
|
*
|
|
4461
|
-
* // Set the camera
|
|
4462
|
-
* setCamera(cam);
|
|
4463
|
-
*
|
|
4464
4470
|
* // Place the camera at the top-center.
|
|
4465
4471
|
* cam.setPosition(0, -400, 800);
|
|
4466
4472
|
*
|
|
@@ -4494,7 +4500,7 @@ class Camera {
|
|
|
4494
4500
|
* cam.setPosition(x, -400, 800);
|
|
4495
4501
|
*
|
|
4496
4502
|
* // Display the value of eyeX, rounded to the nearest integer.
|
|
4497
|
-
* text(`eyeX: ${round(cam.eyeX)}`, 0,
|
|
4503
|
+
* text(`eyeX: ${round(cam.eyeX)}`, 0, 45);
|
|
4498
4504
|
* }
|
|
4499
4505
|
* </code>
|
|
4500
4506
|
* </div>
|
|
@@ -4552,7 +4558,7 @@ class Camera {
|
|
|
4552
4558
|
* fill(0);
|
|
4553
4559
|
*
|
|
4554
4560
|
* // Display the value of eyeY, rounded to the nearest integer.
|
|
4555
|
-
* text(`eyeY: ${round(cam.eyeY)}`, 0,
|
|
4561
|
+
* text(`eyeY: ${round(cam.eyeY)}`, 0, 45);
|
|
4556
4562
|
* }
|
|
4557
4563
|
* </code>
|
|
4558
4564
|
* </div>
|
|
@@ -4606,7 +4612,7 @@ class Camera {
|
|
|
4606
4612
|
* cam.setPosition(0, y, 800);
|
|
4607
4613
|
*
|
|
4608
4614
|
* // Display the value of eyeY, rounded to the nearest integer.
|
|
4609
|
-
* text(`eyeY: ${round(cam.eyeY)}`, 0,
|
|
4615
|
+
* text(`eyeY: ${round(cam.eyeY)}`, 0, 45);
|
|
4610
4616
|
* }
|
|
4611
4617
|
* </code>
|
|
4612
4618
|
* </div>
|
|
@@ -4664,7 +4670,7 @@ class Camera {
|
|
|
4664
4670
|
* fill(0);
|
|
4665
4671
|
*
|
|
4666
4672
|
* // Display the value of eyeZ, rounded to the nearest integer.
|
|
4667
|
-
* text(`eyeZ: ${round(cam.eyeZ)}`, 0,
|
|
4673
|
+
* text(`eyeZ: ${round(cam.eyeZ)}`, 0, 45);
|
|
4668
4674
|
* }
|
|
4669
4675
|
* </code>
|
|
4670
4676
|
* </div>
|
|
@@ -4718,7 +4724,7 @@ class Camera {
|
|
|
4718
4724
|
* cam.setPosition(0, -400, z);
|
|
4719
4725
|
*
|
|
4720
4726
|
* // Display the value of eyeZ, rounded to the nearest integer.
|
|
4721
|
-
* text(`eyeZ: ${round(cam.eyeZ)}`, 0,
|
|
4727
|
+
* text(`eyeZ: ${round(cam.eyeZ)}`, 0, 45);
|
|
4722
4728
|
* }
|
|
4723
4729
|
* </code>
|
|
4724
4730
|
* </div>
|
|
@@ -4777,7 +4783,7 @@ class Camera {
|
|
|
4777
4783
|
* fill(0);
|
|
4778
4784
|
*
|
|
4779
4785
|
* // Display the value of centerX, rounded to the nearest integer.
|
|
4780
|
-
* text(`centerX: ${round(cam.centerX)}`, 0,
|
|
4786
|
+
* text(`centerX: ${round(cam.centerX)}`, 0, 45);
|
|
4781
4787
|
* }
|
|
4782
4788
|
* </code>
|
|
4783
4789
|
* </div>
|
|
@@ -4831,7 +4837,7 @@ class Camera {
|
|
|
4831
4837
|
* cam.lookAt(x, 20, -30);
|
|
4832
4838
|
*
|
|
4833
4839
|
* // Display the value of centerX, rounded to the nearest integer.
|
|
4834
|
-
* text(`centerX: ${round(cam.centerX)}`, 0,
|
|
4840
|
+
* text(`centerX: ${round(cam.centerX)}`, 0, 45);
|
|
4835
4841
|
* }
|
|
4836
4842
|
* </code>
|
|
4837
4843
|
* </div>
|
|
@@ -4890,7 +4896,7 @@ class Camera {
|
|
|
4890
4896
|
* fill(0);
|
|
4891
4897
|
*
|
|
4892
4898
|
* // Display the value of centerY, rounded to the nearest integer.
|
|
4893
|
-
* text(`centerY: ${round(cam.centerY)}`, 0,
|
|
4899
|
+
* text(`centerY: ${round(cam.centerY)}`, 0, 45);
|
|
4894
4900
|
* }
|
|
4895
4901
|
* </code>
|
|
4896
4902
|
* </div>
|
|
@@ -4944,7 +4950,7 @@ class Camera {
|
|
|
4944
4950
|
* cam.lookAt(10, y, -30);
|
|
4945
4951
|
*
|
|
4946
4952
|
* // Display the value of centerY, rounded to the nearest integer.
|
|
4947
|
-
* text(`centerY: ${round(cam.centerY)}`, 0,
|
|
4953
|
+
* text(`centerY: ${round(cam.centerY)}`, 0, 45);
|
|
4948
4954
|
* }
|
|
4949
4955
|
* </code>
|
|
4950
4956
|
* </div>
|
|
@@ -5003,7 +5009,7 @@ class Camera {
|
|
|
5003
5009
|
* fill(0);
|
|
5004
5010
|
*
|
|
5005
5011
|
* // Display the value of centerZ, rounded to the nearest integer.
|
|
5006
|
-
* text(`centerZ: ${round(cam.centerZ)}`, 0,
|
|
5012
|
+
* text(`centerZ: ${round(cam.centerZ)}`, 0, 45);
|
|
5007
5013
|
* }
|
|
5008
5014
|
* </code>
|
|
5009
5015
|
* </div>
|
|
@@ -5021,9 +5027,6 @@ class Camera {
|
|
|
5021
5027
|
* // Create a p5.Camera object.
|
|
5022
5028
|
* cam = createCamera();
|
|
5023
5029
|
*
|
|
5024
|
-
* // Set the camera
|
|
5025
|
-
* setCamera(cam);
|
|
5026
|
-
*
|
|
5027
5030
|
* // Place the camera at the top-right.
|
|
5028
5031
|
* cam.setPosition(100, -400, 800);
|
|
5029
5032
|
*
|
|
@@ -5057,7 +5060,7 @@ class Camera {
|
|
|
5057
5060
|
* cam.lookAt(10, 20, z);
|
|
5058
5061
|
*
|
|
5059
5062
|
* // Display the value of centerZ, rounded to the nearest integer.
|
|
5060
|
-
* text(`centerZ: ${round(cam.centerZ)}`, 0,
|
|
5063
|
+
* text(`centerZ: ${round(cam.centerZ)}`, 0, 45);
|
|
5061
5064
|
* }
|
|
5062
5065
|
* </code>
|
|
5063
5066
|
* </div>
|
|
@@ -5115,7 +5118,7 @@ class Camera {
|
|
|
5115
5118
|
* fill(0);
|
|
5116
5119
|
*
|
|
5117
5120
|
* // Display the value of upX, rounded to the nearest tenth.
|
|
5118
|
-
* text(`upX: ${round(cam.upX, 1)}`, 0,
|
|
5121
|
+
* text(`upX: ${round(cam.upX, 1)}`, 0, 45);
|
|
5119
5122
|
* }
|
|
5120
5123
|
* </code>
|
|
5121
5124
|
* </div>
|
|
@@ -5168,7 +5171,7 @@ class Camera {
|
|
|
5168
5171
|
* cam.camera(100, -400, 800, 0, 0, 0, x, 1, 0);
|
|
5169
5172
|
*
|
|
5170
5173
|
* // Display the value of upX, rounded to the nearest tenth.
|
|
5171
|
-
* text(`upX: ${round(cam.upX, 1)}`, 0,
|
|
5174
|
+
* text(`upX: ${round(cam.upX, 1)}`, 0, 45);
|
|
5172
5175
|
* }
|
|
5173
5176
|
* </code>
|
|
5174
5177
|
* </div>
|
|
@@ -5226,7 +5229,7 @@ class Camera {
|
|
|
5226
5229
|
* fill(0);
|
|
5227
5230
|
*
|
|
5228
5231
|
* // Display the value of upY, rounded to the nearest tenth.
|
|
5229
|
-
* text(`upY: ${round(cam.upY, 1)}`, 0,
|
|
5232
|
+
* text(`upY: ${round(cam.upY, 1)}`, 0, 45);
|
|
5230
5233
|
* }
|
|
5231
5234
|
* </code>
|
|
5232
5235
|
* </div>
|
|
@@ -5279,7 +5282,7 @@ class Camera {
|
|
|
5279
5282
|
* cam.camera(100, -400, 800, 0, 0, 0, 0, y, 0);
|
|
5280
5283
|
*
|
|
5281
5284
|
* // Display the value of upY, rounded to the nearest tenth.
|
|
5282
|
-
* text(`upY: ${round(cam.upY, 1)}`, 0,
|
|
5285
|
+
* text(`upY: ${round(cam.upY, 1)}`, 0, 45);
|
|
5283
5286
|
* }
|
|
5284
5287
|
* </code>
|
|
5285
5288
|
* </div>
|
|
@@ -5337,7 +5340,7 @@ class Camera {
|
|
|
5337
5340
|
* fill(0);
|
|
5338
5341
|
*
|
|
5339
5342
|
* // Display the value of upZ, rounded to the nearest tenth.
|
|
5340
|
-
* text(`upZ: ${round(cam.upZ, 1)}`, 0,
|
|
5343
|
+
* text(`upZ: ${round(cam.upZ, 1)}`, 0, 45);
|
|
5341
5344
|
* }
|
|
5342
5345
|
* </code>
|
|
5343
5346
|
* </div>
|
|
@@ -5390,7 +5393,7 @@ class Camera {
|
|
|
5390
5393
|
* cam.camera(100, -400, 800, 0, 0, 0, 0, 1, z);
|
|
5391
5394
|
*
|
|
5392
5395
|
* // Display the value of upZ, rounded to the nearest tenth.
|
|
5393
|
-
* text(`upZ: ${round(cam.upZ, 1)}`, 0,
|
|
5396
|
+
* text(`upZ: ${round(cam.upZ, 1)}`, 0, 45);
|
|
5394
5397
|
* }
|
|
5395
5398
|
* </code>
|
|
5396
5399
|
* </div>
|
|
@@ -12490,11 +12493,10 @@ function rendererGL(p5, fn) {
|
|
|
12490
12493
|
* }
|
|
12491
12494
|
* </code>
|
|
12492
12495
|
* </div>
|
|
12493
|
-
*
|
|
12494
|
-
* Now with the antialias attribute set to true.
|
|
12495
|
-
* <br>
|
|
12496
|
+
*
|
|
12496
12497
|
* <div>
|
|
12497
12498
|
* <code>
|
|
12499
|
+
* // Now with the antialias attribute set to true.
|
|
12498
12500
|
* function setup() {
|
|
12499
12501
|
* setAttributes('antialias', true);
|
|
12500
12502
|
* createCanvas(100, 100, WEBGL);
|
|
@@ -15946,7 +15948,7 @@ function light(p5, fn){
|
|
|
15946
15948
|
* three parameters, `v1`, `v2`, and `v3`, set the light’s color using the
|
|
15947
15949
|
* current <a href="#/p5/colorMode">colorMode()</a>. The last parameter,
|
|
15948
15950
|
* `direction` sets the light’s direction using a
|
|
15949
|
-
* <a href="#/p5.
|
|
15951
|
+
* <a href="#/p5.Vector">p5.Vector</a> object. For example,
|
|
15950
15952
|
* `directionalLight(255, 0, 0, lightDir)` creates a red `(255, 0, 0)` light
|
|
15951
15953
|
* that shines in the direction the `lightDir` vector points.
|
|
15952
15954
|
*
|
|
@@ -15961,7 +15963,7 @@ function light(p5, fn){
|
|
|
15961
15963
|
* parameter, `color`, sets the light’s color using a
|
|
15962
15964
|
* <a href="#/p5.Color">p5.Color</a> object or an array of color values. The
|
|
15963
15965
|
* second parameter, `direction`, sets the light’s direction using a
|
|
15964
|
-
* <a href="#/p5.
|
|
15966
|
+
* <a href="#/p5.Vector">p5.Vector</a> object. For example,
|
|
15965
15967
|
* `directionalLight(myColor, lightDir)` creates a light that shines in the
|
|
15966
15968
|
* direction the `lightDir` vector points with the color value of `myColor`.
|
|
15967
15969
|
*
|
|
@@ -22024,6 +22026,7 @@ class Texture {
|
|
|
22024
22026
|
// FramebufferTexture instances wrap raw WebGL textures already, which
|
|
22025
22027
|
// don't need any extra updating, as they already live on the GPU
|
|
22026
22028
|
if (this.isFramebufferTexture) {
|
|
22029
|
+
this.src.update();
|
|
22027
22030
|
return false;
|
|
22028
22031
|
}
|
|
22029
22032
|
|
|
@@ -22415,6 +22418,10 @@ class FramebufferTexture {
|
|
|
22415
22418
|
return this.framebuffer.height * this.framebuffer.density;
|
|
22416
22419
|
}
|
|
22417
22420
|
|
|
22421
|
+
update() {
|
|
22422
|
+
this.framebuffer._update(this.property);
|
|
22423
|
+
}
|
|
22424
|
+
|
|
22418
22425
|
rawTexture() {
|
|
22419
22426
|
return this.framebuffer[this.property];
|
|
22420
22427
|
}
|
|
@@ -22427,6 +22434,8 @@ class Framebuffer {
|
|
|
22427
22434
|
|
|
22428
22435
|
this._isClipApplied = false;
|
|
22429
22436
|
|
|
22437
|
+
this.dirty = { colorTexture: false, depthTexture: false };
|
|
22438
|
+
|
|
22430
22439
|
this.pixels = [];
|
|
22431
22440
|
|
|
22432
22441
|
this.format = settings.format || UNSIGNED_BYTE;
|
|
@@ -23466,6 +23475,49 @@ class Framebuffer {
|
|
|
23466
23475
|
}
|
|
23467
23476
|
}
|
|
23468
23477
|
|
|
23478
|
+
/**
|
|
23479
|
+
* Ensure all readable textures are up-to-date.
|
|
23480
|
+
* @private
|
|
23481
|
+
* @property {'colorTexutre'|'depthTexture'} property The property to update
|
|
23482
|
+
*/
|
|
23483
|
+
_update(property) {
|
|
23484
|
+
if (this.dirty[property] && this.antialias) {
|
|
23485
|
+
const gl = this.gl;
|
|
23486
|
+
gl.bindFramebuffer(gl.READ_FRAMEBUFFER, this.aaFramebuffer);
|
|
23487
|
+
gl.bindFramebuffer(gl.DRAW_FRAMEBUFFER, this.framebuffer);
|
|
23488
|
+
const partsToCopy = {
|
|
23489
|
+
colorTexture: [gl.COLOR_BUFFER_BIT, this.colorP5Texture.glMagFilter],
|
|
23490
|
+
};
|
|
23491
|
+
if (this.useDepth) {
|
|
23492
|
+
partsToCopy.depthTexture = [
|
|
23493
|
+
gl.DEPTH_BUFFER_BIT,
|
|
23494
|
+
this.depthP5Texture.glMagFilter
|
|
23495
|
+
];
|
|
23496
|
+
}
|
|
23497
|
+
const [flag, filter] = partsToCopy[property];
|
|
23498
|
+
gl.blitFramebuffer(
|
|
23499
|
+
0,
|
|
23500
|
+
0,
|
|
23501
|
+
this.width * this.density,
|
|
23502
|
+
this.height * this.density,
|
|
23503
|
+
0,
|
|
23504
|
+
0,
|
|
23505
|
+
this.width * this.density,
|
|
23506
|
+
this.height * this.density,
|
|
23507
|
+
flag,
|
|
23508
|
+
filter
|
|
23509
|
+
);
|
|
23510
|
+
this.dirty[property] = false;
|
|
23511
|
+
|
|
23512
|
+
const activeFbo = this.renderer.activeFramebuffer();
|
|
23513
|
+
if (activeFbo) {
|
|
23514
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, activeFbo._framebufferToBind());
|
|
23515
|
+
} else {
|
|
23516
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
|
|
23517
|
+
}
|
|
23518
|
+
}
|
|
23519
|
+
}
|
|
23520
|
+
|
|
23469
23521
|
/**
|
|
23470
23522
|
* Ensures that the framebuffer is ready to be drawn to
|
|
23471
23523
|
*
|
|
@@ -23487,27 +23539,7 @@ class Framebuffer {
|
|
|
23487
23539
|
*/
|
|
23488
23540
|
_beforeEnd() {
|
|
23489
23541
|
if (this.antialias) {
|
|
23490
|
-
|
|
23491
|
-
gl.bindFramebuffer(gl.READ_FRAMEBUFFER, this.aaFramebuffer);
|
|
23492
|
-
gl.bindFramebuffer(gl.DRAW_FRAMEBUFFER, this.framebuffer);
|
|
23493
|
-
const partsToCopy = [
|
|
23494
|
-
[gl.COLOR_BUFFER_BIT, this.colorP5Texture.glMagFilter]
|
|
23495
|
-
];
|
|
23496
|
-
if (this.useDepth) {
|
|
23497
|
-
partsToCopy.push(
|
|
23498
|
-
[gl.DEPTH_BUFFER_BIT, this.depthP5Texture.glMagFilter]
|
|
23499
|
-
);
|
|
23500
|
-
}
|
|
23501
|
-
for (const [flag, filter] of partsToCopy) {
|
|
23502
|
-
gl.blitFramebuffer(
|
|
23503
|
-
0, 0,
|
|
23504
|
-
this.width * this.density, this.height * this.density,
|
|
23505
|
-
0, 0,
|
|
23506
|
-
this.width * this.density, this.height * this.density,
|
|
23507
|
-
flag,
|
|
23508
|
-
filter
|
|
23509
|
-
);
|
|
23510
|
-
}
|
|
23542
|
+
this.dirty = { colorTexture: true, depthTexture: true };
|
|
23511
23543
|
}
|
|
23512
23544
|
}
|
|
23513
23545
|
|
|
@@ -23687,6 +23719,7 @@ class Framebuffer {
|
|
|
23687
23719
|
* </div>
|
|
23688
23720
|
*/
|
|
23689
23721
|
loadPixels() {
|
|
23722
|
+
this._update('colorTexture');
|
|
23690
23723
|
const gl = this.gl;
|
|
23691
23724
|
const prevFramebuffer = this.renderer.activeFramebuffer();
|
|
23692
23725
|
gl.bindFramebuffer(gl.FRAMEBUFFER, this.framebuffer);
|
|
@@ -23745,6 +23778,7 @@ class Framebuffer {
|
|
|
23745
23778
|
* @return {Number[]} color of the pixel at `(x, y)` as an array of color values `[R, G, B, A]`.
|
|
23746
23779
|
*/
|
|
23747
23780
|
get(x, y, w, h) {
|
|
23781
|
+
this._update('colorTexture');
|
|
23748
23782
|
// p5._validateParameters('p5.Framebuffer.get', arguments);
|
|
23749
23783
|
const colorFormat = this._glColorFormat();
|
|
23750
23784
|
if (x === undefined && y === undefined) {
|
|
@@ -23911,6 +23945,7 @@ class Framebuffer {
|
|
|
23911
23945
|
this.pixels
|
|
23912
23946
|
);
|
|
23913
23947
|
this.colorP5Texture.unbindTexture();
|
|
23948
|
+
this.dirty.colorTexture = false;
|
|
23914
23949
|
|
|
23915
23950
|
const prevFramebuffer = this.renderer.activeFramebuffer();
|
|
23916
23951
|
if (this.antialias) {
|
package/dist/shape/attributes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CORNER, i as CORNERS, a as RADIUS, C as CENTER, j as ROUND, S as SQUARE, k as PROJECT, B as BEVEL, l as MITER } from '../constants-
|
|
1
|
+
import { e as CORNER, i as CORNERS, a as RADIUS, C as CENTER, j as ROUND, S as SQUARE, k as PROJECT, B as BEVEL, l as MITER } from '../constants-BRcElHU3.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Shape
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Color } from '../creating_reading-
|
|
1
|
+
import { C as Color } from '../creating_reading-Cr8L2Jnm.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { I as INCLUDE, m as PATH, E as EMPTY_PATH, O as OPEN, n as CLOSE, o as POINTS, L as LINES, p as TRIANGLES, Q as QUADS, q as TRIANGLE_FAN, r as TRIANGLE_STRIP, s as QUAD_STRIP, t as EXCLUDE, J as JOIN } from '../constants-
|
|
3
|
+
import { I as INCLUDE, m as PATH, E as EMPTY_PATH, O as OPEN, n as CLOSE, o as POINTS, L as LINES, p as TRIANGLES, Q as QUADS, q as TRIANGLE_FAN, r as TRIANGLE_STRIP, s as QUAD_STRIP, t as EXCLUDE, J as JOIN } from '../constants-BRcElHU3.js';
|
|
4
4
|
import 'colorjs.io/fn';
|
|
5
5
|
import '../color/color_spaces/hsb.js';
|
|
6
6
|
|
package/dist/shape/index.js
CHANGED
|
@@ -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-
|
|
6
|
+
import '../constants-BRcElHU3.js';
|
|
7
7
|
import '../core/helpers.js';
|
|
8
|
-
import '../creating_reading-
|
|
8
|
+
import '../creating_reading-Cr8L2Jnm.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
11
11
|
import '../math/p5.Vector.js';
|
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-
|
|
4
|
-
import '../creating_reading-
|
|
3
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
4
|
+
import '../creating_reading-Cr8L2Jnm.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-BRcElHU3.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 { C as CENTER, R as RIGHT, a as RADIUS } from '../constants-
|
|
2
|
+
import { C as CENTER, R as RIGHT, a as RADIUS } from '../constants-BRcElHU3.js';
|
|
3
3
|
import { UnicodeRange } from '@japont/unicode-range';
|
|
4
4
|
import { unicodeRanges } from './unicodeRanges.js';
|
|
5
5
|
import Typr from './lib/Typr.js';
|
|
6
6
|
import { createFromCommands } from '@davepagurek/bezier-path';
|
|
7
|
-
import '../p5.Renderer-
|
|
8
|
-
import '../creating_reading-
|
|
7
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
8
|
+
import '../creating_reading-Cr8L2Jnm.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
|
11
11
|
import '../image/filters.js';
|
|
@@ -29,7 +29,6 @@ const invalidFontError = 'Sorry, only TTF, OTF and WOFF files are supported.'; /
|
|
|
29
29
|
const fontFaceVariations = ['weight', 'stretch', 'style'];
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
let nextId = 0;
|
|
33
32
|
class Font {
|
|
34
33
|
constructor(p, fontFace, name, path, data) {
|
|
35
34
|
if (!(fontFace instanceof FontFace)) {
|
|
@@ -40,7 +39,6 @@ class Font {
|
|
|
40
39
|
this.path = path;
|
|
41
40
|
this.data = data;
|
|
42
41
|
this.face = fontFace;
|
|
43
|
-
this.id = nextId++;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
/**
|
package/dist/type/textCore.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as Renderer } from '../p5.Renderer-
|
|
2
|
-
import '../creating_reading-
|
|
1
|
+
import { R as Renderer } from '../p5.Renderer-R23xoC7s.js';
|
|
2
|
+
import '../creating_reading-Cr8L2Jnm.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import '../color/color_spaces/hsb.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-BRcElHU3.js';
|
|
6
6
|
import '../image/filters.js';
|
|
7
7
|
import '../math/p5.Vector.js';
|
|
8
8
|
import '../shape/custom_shapes.js';
|
|
@@ -1251,7 +1251,7 @@ function textCore(p5, fn) {
|
|
|
1251
1251
|
* createCanvas(300, 300);
|
|
1252
1252
|
* background(220);
|
|
1253
1253
|
*
|
|
1254
|
-
* textSize(
|
|
1254
|
+
* textSize(35);
|
|
1255
1255
|
* textAlign(LEFT, BASELINE);
|
|
1256
1256
|
* textFont('Georgia');
|
|
1257
1257
|
*
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { p as default } from '../rendering
|
|
1
|
+
import '../constants-BRcElHU3.js';
|
|
2
|
+
export { p as default } from '../rendering-CvUVN-Vb.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-
|
|
7
|
+
import '../creating_reading-Cr8L2Jnm.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-
|
|
13
|
+
import '../p5.Renderer-R23xoC7s.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 { r as TRIANGLE_STRIP, s as QUAD_STRIP, q as TRIANGLE_FAN } from '../constants-
|
|
1
|
+
import { r as TRIANGLE_STRIP, s as QUAD_STRIP, q as TRIANGLE_FAN } from '../constants-BRcElHU3.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 { m as PATH, Q as QUADS, s as QUAD_STRIP, r as TRIANGLE_STRIP, p as TRIANGLES, a1 as IMAGE, L as LINES, q as TRIANGLE_FAN } from '../constants-
|
|
1
|
+
import { m as PATH, Q as QUADS, s as QUAD_STRIP, r as TRIANGLE_STRIP, p as TRIANGLES, a1 as IMAGE, L as LINES, q as TRIANGLE_FAN } from '../constants-BRcElHU3.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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as rendererGL, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, s as shader, t as texture } from '../rendering
|
|
1
|
+
import { r as rendererGL, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, s as shader, t as texture } from '../rendering-CvUVN-Vb.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 shadergenerator from './ShaderGenerator.js';
|
|
11
|
-
import '../constants-
|
|
12
|
-
import '../creating_reading-
|
|
11
|
+
import '../constants-BRcElHU3.js';
|
|
12
|
+
import '../creating_reading-Cr8L2Jnm.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-
|
|
18
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
19
19
|
import '../image/filters.js';
|
|
20
20
|
import '../math/p5.Vector.js';
|
|
21
21
|
import '../shape/custom_shapes.js';
|
package/dist/webgl/light.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { l as default } from '../rendering
|
|
1
|
+
export { l as default } from '../rendering-CvUVN-Vb.js';
|
|
2
2
|
import '../math/p5.Vector.js';
|
|
3
|
-
import '../creating_reading-
|
|
4
|
-
import '../constants-
|
|
3
|
+
import '../creating_reading-Cr8L2Jnm.js';
|
|
4
|
+
import '../constants-BRcElHU3.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-
|
|
10
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
11
11
|
import '../image/filters.js';
|
|
12
12
|
import '../shape/custom_shapes.js';
|
|
13
13
|
import '../core/States.js';
|
package/dist/webgl/loading.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Geometry } from './p5.Geometry.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { a as request } from '../rendering
|
|
4
|
-
import '../constants-
|
|
3
|
+
import { a as request } from '../rendering-CvUVN-Vb.js';
|
|
4
|
+
import '../constants-BRcElHU3.js';
|
|
5
5
|
import './p5.DataArray.js';
|
|
6
|
-
import '../creating_reading-
|
|
6
|
+
import '../creating_reading-Cr8L2Jnm.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-
|
|
12
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
13
13
|
import '../image/filters.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
|
15
15
|
import '../core/States.js';
|
|
@@ -1020,6 +1020,7 @@ function loading(p5, fn){
|
|
|
1020
1020
|
* @method model
|
|
1021
1021
|
* @param {p5.Geometry} model 3D shape to be drawn.
|
|
1022
1022
|
*
|
|
1023
|
+
* @param {Number} [count=1] number of instances to draw.
|
|
1023
1024
|
* @example
|
|
1024
1025
|
* <div>
|
|
1025
1026
|
* <code>
|