p5 2.0.0-beta.8 → 2.0.1

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 (189) hide show
  1. package/README.md +9 -0
  2. package/{src → dist}/accessibility/color_namer.js +48 -3
  3. package/{src → dist}/accessibility/describe.js +2 -2
  4. package/{src → dist}/accessibility/gridOutput.js +2 -2
  5. package/dist/accessibility/index.js +60 -0
  6. package/{src → dist}/accessibility/outputs.js +2 -2
  7. package/{src → dist}/accessibility/textOutput.js +2 -2
  8. package/dist/app.js +120 -0
  9. package/{src → dist}/color/color_conversion.js +48 -10
  10. package/{src → dist}/color/color_spaces/hsb.js +3 -1
  11. package/dist/color/creating_reading.js +3 -0
  12. package/dist/color/index.js +13 -0
  13. package/dist/color/p5.Color.culori.js +1 -0
  14. package/dist/color/p5.Color.js +3 -0
  15. package/{src → dist}/color/setting.js +9 -6
  16. package/{src/core/constants.js → dist/constants-C-g_eAdC.js} +266 -130
  17. package/{src → dist}/core/States.js +3 -1
  18. package/dist/core/constants.js +1 -0
  19. package/{src → dist}/core/environment.js +7 -6
  20. package/{src → dist}/core/friendly_errors/browser_errors.js +1 -1
  21. package/{src → dist}/core/friendly_errors/fes_core.js +14 -44
  22. package/{src → dist}/core/friendly_errors/file_errors.js +6 -3
  23. package/dist/core/friendly_errors/index.js +23 -0
  24. package/dist/core/friendly_errors/param_validator.js +5455 -0
  25. package/{src → dist}/core/friendly_errors/sketch_reader.js +50 -4
  26. package/{src → dist}/core/friendly_errors/sketch_verifier.js +6 -6
  27. package/{src → dist}/core/friendly_errors/stacktrace.js +3 -5
  28. package/{src → dist}/core/friendly_errors/validate_params.js +50 -41
  29. package/{src → dist}/core/helpers.js +9 -6
  30. package/dist/core/init.js +105 -0
  31. package/dist/core/internationalization.js +302 -0
  32. package/dist/core/legacy.js +73 -0
  33. package/dist/core/main.js +44 -0
  34. package/dist/core/noop.js +3 -0
  35. package/dist/core/p5.Graphics.js +40 -0
  36. package/dist/core/p5.Renderer.js +11 -0
  37. package/dist/core/p5.Renderer2D.js +44 -0
  38. package/dist/core/reference.js +1 -0
  39. package/dist/core/rendering.js +40 -0
  40. package/{src → dist}/core/structure.js +3 -3
  41. package/{src → dist}/core/transform.js +2 -2
  42. package/{src/color/creating_reading.js → dist/creating_reading-D4AAKRbx.js} +841 -13
  43. package/{src → dist}/data/index.js +3 -1
  44. package/{src → dist}/data/local_storage.js +2 -8
  45. package/{src → dist}/dom/dom.js +11 -5
  46. package/dist/dom/index.js +18 -0
  47. package/{src → dist}/dom/p5.Element.js +14 -12
  48. package/{src → dist}/dom/p5.File.js +4 -4
  49. package/{src → dist}/dom/p5.MediaElement.js +10 -4
  50. package/{src → dist}/events/acceleration.js +2 -2
  51. package/{src → dist}/events/index.js +3 -1
  52. package/{src → dist}/events/keyboard.js +14 -11
  53. package/{src → dist}/events/pointer.js +16 -17
  54. package/dist/image/const.js +9 -0
  55. package/{src → dist}/image/filterRenderer2D.js +57 -37
  56. package/{src → dist}/image/filters.js +1 -3
  57. package/dist/image/image.js +40 -0
  58. package/dist/image/index.js +51 -0
  59. package/dist/image/loading_displaying.js +40 -0
  60. package/dist/image/p5.Image.js +11 -0
  61. package/{src → dist}/image/pixels.js +4 -3
  62. package/{src → dist}/io/csv.js +72 -70
  63. package/dist/io/files.js +40 -0
  64. package/dist/io/index.js +51 -0
  65. package/{src → dist}/io/p5.Table.js +6 -6
  66. package/{src → dist}/io/p5.TableRow.js +3 -4
  67. package/{src → dist}/io/p5.XML.js +2 -5
  68. package/{src → dist}/io/utilities.js +1 -1
  69. package/{src/core/p5.Renderer2D.js → dist/main-s72KWcUy.js} +735 -57
  70. package/{src → dist}/math/Matrices/Matrix.js +10 -8
  71. package/{src → dist}/math/Matrices/MatrixInterface.js +5 -3
  72. package/{src → dist}/math/Matrices/MatrixNumjs.js +12 -26
  73. package/{src → dist}/math/calculation.js +2 -2
  74. package/{src → dist}/math/index.js +6 -3
  75. package/{src → dist}/math/math.js +3 -2
  76. package/{src → dist}/math/noise.js +2 -2
  77. package/{src → dist}/math/p5.Matrix.js +7 -4
  78. package/{src → dist}/math/p5.Vector.js +6 -6
  79. package/{src → dist}/math/random.js +2 -2
  80. package/{src → dist}/math/trigonometry.js +16 -15
  81. package/{src/image/p5.Image.js → dist/p5.Renderer-CwAYZOC2.js} +390 -19
  82. package/dist/rendering--aAe5aq3.js +24925 -0
  83. package/{src → dist}/shape/2d_primitives.js +18 -17
  84. package/{src → dist}/shape/attributes.js +18 -17
  85. package/{src → dist}/shape/curves.js +2 -2
  86. package/{src → dist}/shape/custom_shapes.js +596 -82
  87. package/{src → dist}/shape/index.js +10 -2
  88. package/{src → dist}/shape/vertex.js +88 -426
  89. package/dist/type/index.js +25 -0
  90. package/{src → dist}/type/lib/Typr.js +76 -94
  91. package/{src → dist}/type/p5.Font.js +37 -61
  92. package/{src → dist}/type/textCore.js +34 -57
  93. package/{src → dist}/type/unicodeRanges.js +3 -1
  94. package/{src → dist}/utilities/conversion.js +2 -2
  95. package/{src → dist}/utilities/index.js +3 -1
  96. package/{src → dist}/utilities/time_date.js +6 -7
  97. package/{src → dist}/utilities/utility_functions.js +2 -2
  98. package/dist/webgl/3d_primitives.js +40 -0
  99. package/{src → dist}/webgl/GeometryBufferCache.js +3 -1
  100. package/{src → dist}/webgl/GeometryBuilder.js +12 -8
  101. package/{src → dist}/webgl/ShaderGenerator.js +79 -82
  102. package/{src → dist}/webgl/ShapeBuilder.js +26 -23
  103. package/dist/webgl/index.js +76 -0
  104. package/{src → dist}/webgl/interaction.js +7 -6
  105. package/dist/webgl/light.js +40 -0
  106. package/{src → dist}/webgl/loading.js +54 -12
  107. package/dist/webgl/material.js +40 -0
  108. package/dist/webgl/p5.Camera.js +40 -0
  109. package/{src → dist}/webgl/p5.DataArray.js +3 -5
  110. package/dist/webgl/p5.Framebuffer.js +40 -0
  111. package/{src → dist}/webgl/p5.Geometry.js +12 -15
  112. package/{src → dist}/webgl/p5.Quat.js +5 -4
  113. package/{src → dist}/webgl/p5.RenderBuffer.js +2 -3
  114. package/dist/webgl/p5.RendererGL.js +40 -0
  115. package/dist/webgl/p5.Shader.js +40 -0
  116. package/dist/webgl/p5.Texture.js +40 -0
  117. package/{src → dist}/webgl/text.js +51 -9
  118. package/lib/p5.esm.js +722 -529
  119. package/lib/p5.js +722 -529
  120. package/lib/p5.min.js +1 -1
  121. package/package.json +17 -16
  122. package/translations/dev.js +6 -6
  123. package/translations/index.js +1 -1
  124. package/src/README.md +0 -27
  125. package/src/accessibility/index.js +0 -13
  126. package/src/app.js +0 -61
  127. package/src/color/index.js +0 -9
  128. package/src/color/p5.Color.culori.js +0 -66
  129. package/src/color/p5.Color.js +0 -851
  130. package/src/core/README.md +0 -91
  131. package/src/core/friendly_errors/index.js +0 -13
  132. package/src/core/friendly_errors/param_validator.js +0 -561
  133. package/src/core/init.js +0 -58
  134. package/src/core/internationalization.js +0 -195
  135. package/src/core/legacy.js +0 -29
  136. package/src/core/main.js +0 -689
  137. package/src/core/noop.js +0 -1
  138. package/src/core/p5.Graphics.js +0 -696
  139. package/src/core/p5.Renderer.js +0 -396
  140. package/src/core/reference.js +0 -2060
  141. package/src/core/rendering.js +0 -697
  142. package/src/dom/index.js +0 -11
  143. package/src/image/const.js +0 -6
  144. package/src/image/image.js +0 -731
  145. package/src/image/index.js +0 -15
  146. package/src/image/loading_displaying.js +0 -1431
  147. package/src/io/files.js +0 -2210
  148. package/src/io/index.js +0 -11
  149. package/src/math/README.md +0 -40
  150. package/src/type/index.js +0 -9
  151. package/src/webgl/3d_primitives.js +0 -2775
  152. package/src/webgl/index.js +0 -37
  153. package/src/webgl/light.js +0 -1851
  154. package/src/webgl/material.js +0 -3852
  155. package/src/webgl/p5.Camera.js +0 -4010
  156. package/src/webgl/p5.Framebuffer.js +0 -1865
  157. package/src/webgl/p5.RendererGL.js +0 -2868
  158. package/src/webgl/p5.Shader.js +0 -1505
  159. package/src/webgl/p5.Texture.js +0 -541
  160. package/src/webgl/shaders/basic.frag +0 -6
  161. package/src/webgl/shaders/filters/base.frag +0 -22
  162. package/src/webgl/shaders/filters/base.vert +0 -19
  163. package/src/webgl/shaders/filters/blur.frag +0 -60
  164. package/src/webgl/shaders/filters/default.vert +0 -18
  165. package/src/webgl/shaders/filters/dilate.frag +0 -39
  166. package/src/webgl/shaders/filters/erode.frag +0 -39
  167. package/src/webgl/shaders/filters/gray.frag +0 -16
  168. package/src/webgl/shaders/filters/invert.frag +0 -15
  169. package/src/webgl/shaders/filters/opaque.frag +0 -12
  170. package/src/webgl/shaders/filters/posterize.frag +0 -29
  171. package/src/webgl/shaders/filters/threshold.frag +0 -23
  172. package/src/webgl/shaders/font.frag +0 -216
  173. package/src/webgl/shaders/font.vert +0 -44
  174. package/src/webgl/shaders/imageLight.vert +0 -33
  175. package/src/webgl/shaders/imageLightDiffused.frag +0 -82
  176. package/src/webgl/shaders/imageLightSpecular.frag +0 -134
  177. package/src/webgl/shaders/light.vert +0 -37
  178. package/src/webgl/shaders/light_texture.frag +0 -26
  179. package/src/webgl/shaders/lighting.glsl +0 -227
  180. package/src/webgl/shaders/line.frag +0 -74
  181. package/src/webgl/shaders/line.vert +0 -294
  182. package/src/webgl/shaders/normal.frag +0 -6
  183. package/src/webgl/shaders/normal.vert +0 -72
  184. package/src/webgl/shaders/phong.frag +0 -84
  185. package/src/webgl/shaders/phong.vert +0 -87
  186. package/src/webgl/shaders/point.frag +0 -29
  187. package/src/webgl/shaders/point.vert +0 -19
  188. package/src/webgl/shaders/sphereMapping.frag +0 -26
  189. package/src/webgl/shaders/webgl2Compatibility.glsl +0 -34
package/README.md CHANGED
@@ -46,6 +46,15 @@ The p5.js community shares an interest in exploring the creation of art and desi
46
46
 
47
47
  Learn more about [our community](https://p5js.org/community/) and read our community statement and [code of conduct](https://github.com/processing/p5.js/blob/main/CODE_OF_CONDUCT.md). You can directly support our work with p5.js by donating to [the Processing Foundation](https://processingfoundation.org/support).
48
48
 
49
+ ## 🌼 p5.js 2.0 Now Available for Community Testing & Development!
50
+
51
+ We are releasing p5.js 2.0 to the community for testing and development! Here’s what you need to know.
52
+
53
+ * For **reference**: p5.js 1.x reference will stay on [https://p5js.org/](https://p5js.org/), and p5.js 2.x documentation will be on [https://beta.p5js.org/](https://beta.p5js.org/)
54
+ * In the p5.js Editor: the **default will continue to be 1.x** until at least August 2026 - more information and discussion on timeline can be found on [this Discourse thread](https://discourse.processing.org/t/dev-updates-p5-js-2-0-you-are-here/46130) or [this GitHub thread](https://github.com/processing/p5.js/issues/7488)
55
+ * For updating sketches and add-on libraries: check out [the compatibility add-on libraries and guides](https://github.com/processing/p5.js-compatibility)
56
+ * For **contribution**: `npm latest` will default to 2.x, but the git branches are still separated with `main` on 1.x and `dev-2.0` on 2.x. We will switch the branches when we have updated all automations (including deploying updated documentation to the website). Want to contribute ideas or implementation? Check the [2.x project board](https://github.com/orgs/processing/projects/21/views/8) for an overview of what still needs discussion, and what’s ready for work!
57
+
49
58
  ## Issues
50
59
 
51
60
  If you have found a bug in the p5.js library or want to request new features, feel free to file an issue! See our [contributor guidelines](https://p5js.org/contribute/contributor_guidelines) for a full reference of our contribution process. A set of templates for reporting issues and requesting features are provided to assist you (and us!). Different parts of p5.js are in different repositories. You can open an issue on each of them through these links:
@@ -1,3 +1,49 @@
1
+ import color_conversion from '../color/color_conversion.js';
2
+ import '../main-s72KWcUy.js';
3
+ import '../constants-C-g_eAdC.js';
4
+ import '../core/transform.js';
5
+ import '../core/structure.js';
6
+ import '../core/environment.js';
7
+ import '../math/p5.Vector.js';
8
+ import '../rendering--aAe5aq3.js';
9
+ import '../creating_reading-D4AAKRbx.js';
10
+ import 'colorjs.io/fn';
11
+ import '../color/color_spaces/hsb.js';
12
+ import '../dom/p5.Element.js';
13
+ import '../dom/p5.File.js';
14
+ import '../io/p5.XML.js';
15
+ import '../p5.Renderer-CwAYZOC2.js';
16
+ import '../image/filters.js';
17
+ import '../shape/custom_shapes.js';
18
+ import '../core/States.js';
19
+ import '../io/utilities.js';
20
+ import 'file-saver';
21
+ import '../dom/p5.MediaElement.js';
22
+ import '../shape/2d_primitives.js';
23
+ import '../core/helpers.js';
24
+ import '../shape/attributes.js';
25
+ import '../shape/curves.js';
26
+ import '../shape/vertex.js';
27
+ import '../color/setting.js';
28
+ import 'omggif';
29
+ import '../io/csv.js';
30
+ import 'gifenc';
31
+ import '../image/pixels.js';
32
+ import '../webgl/GeometryBuilder.js';
33
+ import '../math/p5.Matrix.js';
34
+ import '../math/Matrices/Matrix.js';
35
+ import '../math/Matrices/MatrixInterface.js';
36
+ import '../webgl/p5.Geometry.js';
37
+ import '../webgl/p5.DataArray.js';
38
+ import '../webgl/p5.Quat.js';
39
+ import '../webgl/p5.RenderBuffer.js';
40
+ import '../webgl/ShapeBuilder.js';
41
+ import 'libtess';
42
+ import '../webgl/GeometryBufferCache.js';
43
+ import '../image/const.js';
44
+ import '../math/trigonometry.js';
45
+ import '../image/filterRenderer2D.js';
46
+
1
47
  /**
2
48
  * @module Environment
3
49
  * @submodule Environment
@@ -5,7 +51,6 @@
5
51
  * @requires core
6
52
  */
7
53
 
8
- import color_conversion from '../color/color_conversion';
9
54
 
10
55
  function colorNamer(p5, fn){
11
56
  //stores the original hsb values
@@ -713,8 +758,8 @@ function colorNamer(p5, fn){
713
758
  };
714
759
  }
715
760
 
716
- export default colorNamer;
717
-
718
761
  if(typeof p5 !== 'undefined'){
719
762
  colorNamer(p5, p5.prototype);
720
763
  }
764
+
765
+ export { colorNamer as default };
@@ -498,8 +498,8 @@ function describe(p5, fn){
498
498
  };
499
499
  }
500
500
 
501
- export default describe;
502
-
503
501
  if(typeof p5 !== 'undefined'){
504
502
  describe(p5, p5.prototype);
505
503
  }
504
+
505
+ export { describe as default };
@@ -152,8 +152,8 @@ function gridOutput(p5, fn){
152
152
  }
153
153
  }
154
154
 
155
- export default gridOutput;
156
-
157
155
  if(typeof p5 !== 'undefined'){
158
156
  gridOutput(p5, p5.prototype);
159
157
  }
158
+
159
+ export { gridOutput as default };
@@ -0,0 +1,60 @@
1
+ import describe from './describe.js';
2
+ import gridOutput from './gridOutput.js';
3
+ import textOutput from './textOutput.js';
4
+ import outputs from './outputs.js';
5
+ import colorNamer from './color_namer.js';
6
+ import '../color/color_conversion.js';
7
+ import '../main-s72KWcUy.js';
8
+ import '../constants-C-g_eAdC.js';
9
+ import '../core/transform.js';
10
+ import '../core/structure.js';
11
+ import '../core/environment.js';
12
+ import '../math/p5.Vector.js';
13
+ import '../rendering--aAe5aq3.js';
14
+ import '../creating_reading-D4AAKRbx.js';
15
+ import 'colorjs.io/fn';
16
+ import '../color/color_spaces/hsb.js';
17
+ import '../dom/p5.Element.js';
18
+ import '../dom/p5.File.js';
19
+ import '../io/p5.XML.js';
20
+ import '../p5.Renderer-CwAYZOC2.js';
21
+ import '../image/filters.js';
22
+ import '../shape/custom_shapes.js';
23
+ import '../core/States.js';
24
+ import '../io/utilities.js';
25
+ import 'file-saver';
26
+ import '../dom/p5.MediaElement.js';
27
+ import '../shape/2d_primitives.js';
28
+ import '../core/helpers.js';
29
+ import '../shape/attributes.js';
30
+ import '../shape/curves.js';
31
+ import '../shape/vertex.js';
32
+ import '../color/setting.js';
33
+ import 'omggif';
34
+ import '../io/csv.js';
35
+ import 'gifenc';
36
+ import '../image/pixels.js';
37
+ import '../webgl/GeometryBuilder.js';
38
+ import '../math/p5.Matrix.js';
39
+ import '../math/Matrices/Matrix.js';
40
+ import '../math/Matrices/MatrixInterface.js';
41
+ import '../webgl/p5.Geometry.js';
42
+ import '../webgl/p5.DataArray.js';
43
+ import '../webgl/p5.Quat.js';
44
+ import '../webgl/p5.RenderBuffer.js';
45
+ import '../webgl/ShapeBuilder.js';
46
+ import 'libtess';
47
+ import '../webgl/GeometryBufferCache.js';
48
+ import '../image/const.js';
49
+ import '../math/trigonometry.js';
50
+ import '../image/filterRenderer2D.js';
51
+
52
+ function accessibility(p5){
53
+ p5.registerAddon(describe);
54
+ p5.registerAddon(gridOutput);
55
+ p5.registerAddon(textOutput);
56
+ p5.registerAddon(outputs);
57
+ p5.registerAddon(colorNamer);
58
+ }
59
+
60
+ export { accessibility as default };
@@ -681,8 +681,8 @@ function outputs(p5, fn){
681
681
  };
682
682
  }
683
683
 
684
- export default outputs;
685
-
686
684
  if(typeof p5 !== 'undefined'){
687
685
  outputs(p5, p5.prototype);
688
686
  }
687
+
688
+ export { outputs as default };
@@ -119,8 +119,8 @@ function textOutput(p5, fn){
119
119
  }
120
120
  }
121
121
 
122
- export default textOutput;
123
-
124
122
  if(typeof p5 !== 'undefined'){
125
123
  textOutput(p5, p5.prototype);
126
124
  }
125
+
126
+ export { textOutput as default };
package/dist/app.js ADDED
@@ -0,0 +1,120 @@
1
+ import { p as p5 } from './main-s72KWcUy.js';
2
+ import shape from './shape/index.js';
3
+ import accessibility from './accessibility/index.js';
4
+ import color from './color/index.js';
5
+ import friendlyErrors from './core/friendly_errors/index.js';
6
+ import data from './data/index.js';
7
+ import dom from './dom/index.js';
8
+ import events from './events/index.js';
9
+ import image from './image/index.js';
10
+ import io from './io/index.js';
11
+ import math from './math/index.js';
12
+ import utilities from './utilities/index.js';
13
+ import webgl from './webgl/index.js';
14
+ import type from './type/index.js';
15
+ import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init.js';
16
+ import './constants-C-g_eAdC.js';
17
+ import './core/transform.js';
18
+ import './core/structure.js';
19
+ import './core/environment.js';
20
+ import './math/p5.Vector.js';
21
+ import './rendering--aAe5aq3.js';
22
+ import './creating_reading-D4AAKRbx.js';
23
+ import 'colorjs.io/fn';
24
+ import './color/color_spaces/hsb.js';
25
+ import './dom/p5.Element.js';
26
+ import './dom/p5.File.js';
27
+ import './io/p5.XML.js';
28
+ import './p5.Renderer-CwAYZOC2.js';
29
+ import './image/filters.js';
30
+ import './shape/custom_shapes.js';
31
+ import './core/States.js';
32
+ import './io/utilities.js';
33
+ import 'file-saver';
34
+ import './dom/p5.MediaElement.js';
35
+ import './shape/2d_primitives.js';
36
+ import './core/helpers.js';
37
+ import './shape/attributes.js';
38
+ import './shape/curves.js';
39
+ import './shape/vertex.js';
40
+ import './color/setting.js';
41
+ import 'omggif';
42
+ import './io/csv.js';
43
+ import 'gifenc';
44
+ import './image/pixels.js';
45
+ import './webgl/GeometryBuilder.js';
46
+ import './math/p5.Matrix.js';
47
+ import './math/Matrices/Matrix.js';
48
+ import './math/Matrices/MatrixInterface.js';
49
+ import './webgl/p5.Geometry.js';
50
+ import './webgl/p5.DataArray.js';
51
+ import './webgl/p5.Quat.js';
52
+ import './webgl/p5.RenderBuffer.js';
53
+ import './webgl/ShapeBuilder.js';
54
+ import 'libtess';
55
+ import './webgl/GeometryBufferCache.js';
56
+ import './image/const.js';
57
+ import './math/trigonometry.js';
58
+ import './image/filterRenderer2D.js';
59
+ import './accessibility/describe.js';
60
+ import './accessibility/gridOutput.js';
61
+ import './accessibility/textOutput.js';
62
+ import './accessibility/outputs.js';
63
+ import './accessibility/color_namer.js';
64
+ import './color/color_conversion.js';
65
+ import './core/friendly_errors/fes_core.js';
66
+ import './core/internationalization.js';
67
+ import 'i18next';
68
+ import 'i18next-browser-languagedetector';
69
+ import './core/friendly_errors/browser_errors.js';
70
+ import './core/friendly_errors/stacktrace.js';
71
+ import './core/friendly_errors/param_validator.js';
72
+ import 'zod';
73
+ import './core/friendly_errors/sketch_verifier.js';
74
+ import 'acorn';
75
+ import 'acorn-walk';
76
+ import './core/friendly_errors/file_errors.js';
77
+ import './data/local_storage.js';
78
+ import './dom/dom.js';
79
+ import './events/acceleration.js';
80
+ import './events/keyboard.js';
81
+ import './events/pointer.js';
82
+ import './io/p5.Table.js';
83
+ import './io/p5.TableRow.js';
84
+ import './math/calculation.js';
85
+ import './math/noise.js';
86
+ import './math/random.js';
87
+ import './math/math.js';
88
+ import './utilities/conversion.js';
89
+ import './utilities/utility_functions.js';
90
+ import './utilities/time_date.js';
91
+ import './webgl/interaction.js';
92
+ import './webgl/loading.js';
93
+ import './webgl/text.js';
94
+ import './type/p5.Font.js';
95
+ import './type/textCore.js';
96
+ import '@japont/unicode-range';
97
+ import './type/unicodeRanges.js';
98
+ import './type/lib/Typr.js';
99
+ import 'pako';
100
+ import '@davepagurek/bezier-path';
101
+ import './webgl/ShaderGenerator.js';
102
+ import 'escodegen';
103
+
104
+ // core
105
+ shape(p5);
106
+ accessibility(p5);
107
+ color(p5);
108
+ friendlyErrors(p5);
109
+ data(p5);
110
+ dom(p5);
111
+ events(p5);
112
+ image(p5);
113
+ io(p5);
114
+ math(p5);
115
+ utilities(p5);
116
+ webgl(p5);
117
+ type(p5);
118
+ Promise.all([waitForDocumentReady(), waitingForTranslator]).then(_globalInit);
119
+
120
+ export { p5 as default };
@@ -1,3 +1,48 @@
1
+ import { p as p5 } from '../main-s72KWcUy.js';
2
+ import '../constants-C-g_eAdC.js';
3
+ import '../core/transform.js';
4
+ import '../core/structure.js';
5
+ import '../core/environment.js';
6
+ import '../math/p5.Vector.js';
7
+ import '../rendering--aAe5aq3.js';
8
+ import '../creating_reading-D4AAKRbx.js';
9
+ import 'colorjs.io/fn';
10
+ import './color_spaces/hsb.js';
11
+ import '../dom/p5.Element.js';
12
+ import '../dom/p5.File.js';
13
+ import '../io/p5.XML.js';
14
+ import '../p5.Renderer-CwAYZOC2.js';
15
+ import '../image/filters.js';
16
+ import '../shape/custom_shapes.js';
17
+ import '../core/States.js';
18
+ import '../io/utilities.js';
19
+ import 'file-saver';
20
+ import '../dom/p5.MediaElement.js';
21
+ import '../shape/2d_primitives.js';
22
+ import '../core/helpers.js';
23
+ import '../shape/attributes.js';
24
+ import '../shape/curves.js';
25
+ import '../shape/vertex.js';
26
+ import './setting.js';
27
+ import 'omggif';
28
+ import '../io/csv.js';
29
+ import 'gifenc';
30
+ import '../image/pixels.js';
31
+ import '../webgl/GeometryBuilder.js';
32
+ import '../math/p5.Matrix.js';
33
+ import '../math/Matrices/Matrix.js';
34
+ import '../math/Matrices/MatrixInterface.js';
35
+ import '../webgl/p5.Geometry.js';
36
+ import '../webgl/p5.DataArray.js';
37
+ import '../webgl/p5.Quat.js';
38
+ import '../webgl/p5.RenderBuffer.js';
39
+ import '../webgl/ShapeBuilder.js';
40
+ import 'libtess';
41
+ import '../webgl/GeometryBufferCache.js';
42
+ import '../image/const.js';
43
+ import '../math/trigonometry.js';
44
+ import '../image/filterRenderer2D.js';
45
+
1
46
  /**
2
47
  * @module Color
3
48
  * @submodule Color Conversion
@@ -5,15 +50,6 @@
5
50
  * @requires core
6
51
  */
7
52
 
8
- /**
9
- * Conversions adapted from <http://www.easyrgb.com/en/math.php>.
10
- *
11
- * In these functions, hue is always in the range [0, 1], just like all other
12
- * components are in the range [0, 1]. 'Brightness' and 'value' are used
13
- * interchangeably.
14
- */
15
-
16
- import p5 from '../core/main';
17
53
  p5.ColorConversion = {
18
54
  /**
19
55
  * Convert an HSBA array to HSLA.
@@ -267,4 +303,6 @@ p5.ColorConversion = {
267
303
  return [hue / 6, sat, li / 2, rgba[3]];
268
304
  }
269
305
  };
270
- export default p5.ColorConversion;
306
+ var color_conversion = p5.ColorConversion;
307
+
308
+ export { color_conversion as default };
@@ -1,6 +1,6 @@
1
1
  import { ColorSpace, sRGB } from 'colorjs.io/fn';
2
2
 
3
- export default new ColorSpace({
3
+ var HSBSpace = new ColorSpace({
4
4
  id: 'hsb',
5
5
  name: 'HSB',
6
6
  coords: {
@@ -140,3 +140,5 @@ function toBase(hsb){
140
140
 
141
141
  return RGB;
142
142
  }
143
+
144
+ export { HSBSpace as default };
@@ -0,0 +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 RGBHDR, c as default } from '../creating_reading-D4AAKRbx.js';
2
+ import 'colorjs.io/fn';
3
+ import './color_spaces/hsb.js';
@@ -0,0 +1,13 @@
1
+ import { c as creatingReading, a as color$1 } from '../creating_reading-D4AAKRbx.js';
2
+ import setting from './setting.js';
3
+ import 'colorjs.io/fn';
4
+ import './color_spaces/hsb.js';
5
+ import '../constants-C-g_eAdC.js';
6
+
7
+ function color(p5){
8
+ p5.registerAddon(creatingReading);
9
+ p5.registerAddon(color$1);
10
+ p5.registerAddon(setting);
11
+ }
12
+
13
+ export { color as default };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,3 @@
1
+ export { C as Color, a as default } from '../creating_reading-D4AAKRbx.js';
2
+ import 'colorjs.io/fn';
3
+ import './color_spaces/hsb.js';
@@ -1,3 +1,8 @@
1
+ import { N as NORMAL, u as BLEND } from '../constants-C-g_eAdC.js';
2
+ import { R as RGB, b as RGBHDR, H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH } from '../creating_reading-D4AAKRbx.js';
3
+ import 'colorjs.io/fn';
4
+ import './color_spaces/hsb.js';
5
+
1
6
  /**
2
7
  * @module Color
3
8
  * @submodule Setting
@@ -6,8 +11,6 @@
6
11
  * @requires constants
7
12
  */
8
13
 
9
- import * as constants from '../core/constants';
10
- import { RGB, RGBHDR, HSL, HSB, HWB, LAB, LCH, OKLAB, OKLCH } from './creating_reading';
11
14
 
12
15
  function setting(p5, fn){
13
16
  /**
@@ -2393,19 +2396,19 @@ function setting(p5, fn){
2393
2396
  */
2394
2397
  fn.blendMode = function (mode) {
2395
2398
  // p5._validateParameters('blendMode', arguments);
2396
- if (mode === constants.NORMAL) {
2399
+ if (mode === NORMAL) {
2397
2400
  // Warning added 3/26/19, can be deleted in future (1.0 release?)
2398
2401
  console.warn(
2399
2402
  'NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.'
2400
2403
  );
2401
- mode = constants.BLEND;
2404
+ mode = BLEND;
2402
2405
  }
2403
2406
  this._renderer.blendMode(mode);
2404
2407
  };
2405
2408
  }
2406
2409
 
2407
- export default setting;
2408
-
2409
2410
  if(typeof p5 !== 'undefined'){
2410
2411
  setting(p5, p5.prototype);
2411
2412
  }
2413
+
2414
+ export { setting as default };