@tsparticles/configs 3.0.0-beta.3 → 3.0.0-beta.4

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 (185) hide show
  1. package/browser/c/connect.js +3 -1
  2. package/browser/c/curlNoise.js +49 -0
  3. package/browser/c/index.js +2 -0
  4. package/browser/d/dataImages.js +0 -1
  5. package/browser/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  6. package/browser/e/effectTrail.js +53 -0
  7. package/browser/e/emitterImageShape.js +95 -0
  8. package/browser/e/emitterImages.js +0 -1
  9. package/browser/e/emitterShapes.js +56 -70
  10. package/browser/e/emitterTextShape.js +100 -0
  11. package/browser/e/emitterTextStrokeShape.js +100 -0
  12. package/browser/e/index.js +10 -0
  13. package/browser/f/fontawesome.js +0 -1
  14. package/browser/g/gifs.js +1 -1
  15. package/browser/h/hollowknight.js +0 -1
  16. package/browser/i/images.js +0 -1
  17. package/browser/l/localPolygonMask.js +0 -1
  18. package/browser/m/index.js +2 -0
  19. package/browser/m/mouseTrailNoise.js +118 -0
  20. package/browser/m/multiplePolygonMasks.js +0 -1
  21. package/browser/o/orbit.js +1 -1
  22. package/browser/p/index.js +2 -0
  23. package/browser/p/pathPolygonMask.js +0 -1
  24. package/browser/p/pathSvg.js +0 -1
  25. package/browser/p/polygonMask.js +0 -1
  26. package/browser/p/pop.js +67 -0
  27. package/browser/r/random.js +1 -1
  28. package/browser/r/reactBubbles.js +0 -1
  29. package/browser/r/reactNightSky.js +0 -1
  30. package/browser/r/reactPolygonMask.js +0 -1
  31. package/browser/r/reactSimple.js +0 -1
  32. package/browser/r/reactSnow.js +0 -1
  33. package/browser/r/ring.js +1 -1
  34. package/browser/s/index.js +0 -2
  35. package/browser/s/shapeMultilineText.js +2 -2
  36. package/browser/s/style.js +1 -1
  37. package/browser/s/svgReplace.js +0 -1
  38. package/browser/t/tilt.js +1 -1
  39. package/browser/t/trail.js +1 -1
  40. package/browser/t/trailImage.js +1 -1
  41. package/browser/w/wobble.js +1 -1
  42. package/cjs/c/connect.js +3 -1
  43. package/cjs/c/curlNoise.js +51 -0
  44. package/cjs/c/index.js +2 -0
  45. package/cjs/d/dataImages.js +0 -1
  46. package/cjs/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  47. package/cjs/e/effectTrail.js +55 -0
  48. package/cjs/e/emitterImageShape.js +97 -0
  49. package/cjs/e/emitterImages.js +0 -1
  50. package/cjs/e/emitterShapes.js +56 -70
  51. package/cjs/e/emitterTextShape.js +102 -0
  52. package/cjs/e/emitterTextStrokeShape.js +102 -0
  53. package/cjs/e/index.js +10 -0
  54. package/cjs/f/fontawesome.js +0 -1
  55. package/cjs/g/gifs.js +1 -1
  56. package/cjs/h/hollowknight.js +0 -1
  57. package/cjs/i/images.js +0 -1
  58. package/cjs/l/localPolygonMask.js +0 -1
  59. package/cjs/m/index.js +2 -0
  60. package/cjs/m/mouseTrailNoise.js +120 -0
  61. package/cjs/m/multiplePolygonMasks.js +0 -1
  62. package/cjs/o/orbit.js +1 -1
  63. package/cjs/p/index.js +2 -0
  64. package/cjs/p/pathPolygonMask.js +0 -1
  65. package/cjs/p/pathSvg.js +0 -1
  66. package/cjs/p/polygonMask.js +0 -1
  67. package/cjs/p/pop.js +69 -0
  68. package/cjs/r/random.js +1 -1
  69. package/cjs/r/reactBubbles.js +0 -1
  70. package/cjs/r/reactNightSky.js +0 -1
  71. package/cjs/r/reactPolygonMask.js +0 -1
  72. package/cjs/r/reactSimple.js +0 -1
  73. package/cjs/r/reactSnow.js +0 -1
  74. package/cjs/r/ring.js +1 -1
  75. package/cjs/s/index.js +0 -2
  76. package/cjs/s/shapeMultilineText.js +2 -2
  77. package/cjs/s/style.js +1 -1
  78. package/cjs/s/svgReplace.js +0 -1
  79. package/cjs/t/tilt.js +1 -1
  80. package/cjs/t/trail.js +1 -1
  81. package/cjs/t/trailImage.js +1 -1
  82. package/cjs/w/wobble.js +1 -1
  83. package/esm/c/connect.js +3 -1
  84. package/esm/c/curlNoise.js +49 -0
  85. package/esm/c/index.js +2 -0
  86. package/esm/d/dataImages.js +0 -1
  87. package/esm/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  88. package/esm/e/effectTrail.js +53 -0
  89. package/esm/e/emitterImageShape.js +95 -0
  90. package/esm/e/emitterImages.js +0 -1
  91. package/esm/e/emitterShapes.js +56 -70
  92. package/esm/e/emitterTextShape.js +100 -0
  93. package/esm/e/emitterTextStrokeShape.js +100 -0
  94. package/esm/e/index.js +10 -0
  95. package/esm/f/fontawesome.js +0 -1
  96. package/esm/g/gifs.js +1 -1
  97. package/esm/h/hollowknight.js +0 -1
  98. package/esm/i/images.js +0 -1
  99. package/esm/l/localPolygonMask.js +0 -1
  100. package/esm/m/index.js +2 -0
  101. package/esm/m/mouseTrailNoise.js +118 -0
  102. package/esm/m/multiplePolygonMasks.js +0 -1
  103. package/esm/o/orbit.js +1 -1
  104. package/esm/p/index.js +2 -0
  105. package/esm/p/pathPolygonMask.js +0 -1
  106. package/esm/p/pathSvg.js +0 -1
  107. package/esm/p/polygonMask.js +0 -1
  108. package/esm/p/pop.js +67 -0
  109. package/esm/r/random.js +1 -1
  110. package/esm/r/reactBubbles.js +0 -1
  111. package/esm/r/reactNightSky.js +0 -1
  112. package/esm/r/reactPolygonMask.js +0 -1
  113. package/esm/r/reactSimple.js +0 -1
  114. package/esm/r/reactSnow.js +0 -1
  115. package/esm/r/ring.js +1 -1
  116. package/esm/s/index.js +0 -2
  117. package/esm/s/shapeMultilineText.js +2 -2
  118. package/esm/s/style.js +1 -1
  119. package/esm/s/svgReplace.js +0 -1
  120. package/esm/t/tilt.js +1 -1
  121. package/esm/t/trail.js +1 -1
  122. package/esm/t/trailImage.js +1 -1
  123. package/esm/w/wobble.js +1 -1
  124. package/package.json +2 -2
  125. package/report.html +4 -22
  126. package/tsparticles.configs.bundle.js +1 -1
  127. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  128. package/tsparticles.configs.js +762 -159
  129. package/tsparticles.configs.min.js +1 -1
  130. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  131. package/types/c/index.d.ts +1 -0
  132. package/types/e/effectBubble.d.ts +3 -0
  133. package/types/e/effectTrail.d.ts +3 -0
  134. package/types/e/emitterImageShape.d.ts +3 -0
  135. package/types/e/emitterTextShape.d.ts +3 -0
  136. package/types/e/emitterTextStrokeShape.d.ts +3 -0
  137. package/types/e/index.d.ts +5 -0
  138. package/types/index.d.ts +8 -1
  139. package/types/m/index.d.ts +1 -0
  140. package/types/m/mouseTrailNoise.d.ts +3 -0
  141. package/types/p/index.d.ts +1 -0
  142. package/types/p/pop.d.ts +3 -0
  143. package/types/s/index.d.ts +0 -1
  144. package/umd/c/connect.js +3 -1
  145. package/umd/c/curlNoise.js +61 -0
  146. package/umd/c/index.js +3 -1
  147. package/umd/d/dataImages.js +0 -1
  148. package/umd/{s/shapeBubble.js → e/effectBubble.js} +5 -2
  149. package/umd/e/effectTrail.js +65 -0
  150. package/umd/e/emitterImageShape.js +107 -0
  151. package/umd/e/emitterImages.js +0 -1
  152. package/umd/e/emitterShapes.js +56 -70
  153. package/umd/e/emitterTextShape.js +112 -0
  154. package/umd/e/emitterTextStrokeShape.js +112 -0
  155. package/umd/e/index.js +11 -1
  156. package/umd/f/fontawesome.js +0 -1
  157. package/umd/g/gifs.js +1 -1
  158. package/umd/h/hollowknight.js +0 -1
  159. package/umd/i/images.js +0 -1
  160. package/umd/l/localPolygonMask.js +0 -1
  161. package/umd/m/index.js +3 -1
  162. package/umd/m/mouseTrailNoise.js +130 -0
  163. package/umd/m/multiplePolygonMasks.js +0 -1
  164. package/umd/o/orbit.js +1 -1
  165. package/umd/p/index.js +3 -1
  166. package/umd/p/pathPolygonMask.js +0 -1
  167. package/umd/p/pathSvg.js +0 -1
  168. package/umd/p/polygonMask.js +0 -1
  169. package/umd/p/pop.js +79 -0
  170. package/umd/r/random.js +1 -1
  171. package/umd/r/reactBubbles.js +0 -1
  172. package/umd/r/reactNightSky.js +0 -1
  173. package/umd/r/reactPolygonMask.js +0 -1
  174. package/umd/r/reactSimple.js +0 -1
  175. package/umd/r/reactSnow.js +0 -1
  176. package/umd/r/ring.js +1 -1
  177. package/umd/s/index.js +1 -3
  178. package/umd/s/shapeMultilineText.js +2 -2
  179. package/umd/s/style.js +1 -1
  180. package/umd/s/svgReplace.js +0 -1
  181. package/umd/t/tilt.js +1 -1
  182. package/umd/t/trail.js +1 -1
  183. package/umd/t/trailImage.js +1 -1
  184. package/umd/w/wobble.js +1 -1
  185. /package/types/{s/shapeBubble.d.ts → c/curlNoise.d.ts} +0 -0
@@ -0,0 +1,118 @@
1
+ const options = {
2
+ name: "Mouse Trail Noise",
3
+ particles: {
4
+ number: {
5
+ value: 0,
6
+ },
7
+ color: {
8
+ value: ["#ff0000", "#00ff00", "#0000ff"],
9
+ animation: {
10
+ enable: true,
11
+ speed: 360,
12
+ sync: false,
13
+ },
14
+ },
15
+ shape: {
16
+ type: "triangle",
17
+ },
18
+ opacity: {
19
+ value: { min: 0, max: 1 },
20
+ animation: {
21
+ enable: true,
22
+ speed: 1,
23
+ sync: false,
24
+ destroy: "min",
25
+ },
26
+ },
27
+ size: {
28
+ value: {
29
+ min: 4,
30
+ max: 8,
31
+ },
32
+ },
33
+ move: {
34
+ enable: true,
35
+ speed: 6,
36
+ outModes: "destroy",
37
+ path: {
38
+ enable: true,
39
+ options: {
40
+ size: 64,
41
+ draw: false,
42
+ increment: 0.005,
43
+ },
44
+ delay: {
45
+ value: 0,
46
+ },
47
+ generator: "perlinNoise",
48
+ },
49
+ },
50
+ rotate: {
51
+ value: {
52
+ min: 0,
53
+ max: 360,
54
+ },
55
+ direction: "random",
56
+ move: true,
57
+ animation: {
58
+ enable: true,
59
+ speed: 60,
60
+ },
61
+ },
62
+ tilt: {
63
+ direction: "random",
64
+ enable: true,
65
+ move: true,
66
+ value: {
67
+ min: 0,
68
+ max: 360,
69
+ },
70
+ animation: {
71
+ enable: true,
72
+ speed: 60,
73
+ },
74
+ },
75
+ roll: {
76
+ darken: {
77
+ enable: true,
78
+ value: 30,
79
+ },
80
+ enlighten: {
81
+ enable: true,
82
+ value: 30,
83
+ },
84
+ enable: true,
85
+ mode: "both",
86
+ speed: {
87
+ min: 15,
88
+ max: 25,
89
+ },
90
+ },
91
+ wobble: {
92
+ distance: 30,
93
+ enable: true,
94
+ move: true,
95
+ speed: {
96
+ min: -15,
97
+ max: 15,
98
+ },
99
+ },
100
+ },
101
+ interactivity: {
102
+ events: {
103
+ onHover: {
104
+ enable: true,
105
+ mode: "trail",
106
+ },
107
+ },
108
+ modes: {
109
+ trail: {
110
+ delay: 0.01,
111
+ },
112
+ },
113
+ },
114
+ background: {
115
+ color: "#000000",
116
+ },
117
+ };
118
+ export default options;
@@ -72,7 +72,6 @@ const options = {
72
72
  speed: 1,
73
73
  },
74
74
  number: {
75
- limit: 0,
76
75
  value: 200,
77
76
  },
78
77
  opacity: {
@@ -12,7 +12,7 @@ const options = {
12
12
  density: {
13
13
  enable: true,
14
14
  },
15
- limit: 300,
15
+ limit: { value: 300 },
16
16
  value: 100,
17
17
  },
18
18
  opacity: {
@@ -5,6 +5,7 @@ import planes from "./planes.js";
5
5
  import plasma from "./plasma.js";
6
6
  import polygonMask from "./polygonMask.js";
7
7
  import polygons from "./polygons.js";
8
+ import pop from "./pop.js";
8
9
  export default {
9
10
  parallax,
10
11
  pathPolygonMask,
@@ -13,4 +14,5 @@ export default {
13
14
  plasma,
14
15
  polygonMask,
15
16
  polygons,
17
+ pop,
16
18
  };
@@ -33,7 +33,6 @@ const options = {
33
33
  speed: 1,
34
34
  },
35
35
  number: {
36
- limit: 0,
37
36
  value: 80,
38
37
  },
39
38
  opacity: {
@@ -32,7 +32,6 @@ const options = {
32
32
  },
33
33
  },
34
34
  number: {
35
- limit: 0,
36
35
  value: 80,
37
36
  },
38
37
  opacity: {
@@ -72,7 +72,6 @@ const options = {
72
72
  speed: 1,
73
73
  },
74
74
  number: {
75
- limit: 0,
76
75
  value: 200,
77
76
  },
78
77
  opacity: {
@@ -0,0 +1,67 @@
1
+ const options = {
2
+ name: "Pop",
3
+ particles: {
4
+ number: {
5
+ limit: {
6
+ value: 80,
7
+ mode: "wait",
8
+ },
9
+ value: 80,
10
+ },
11
+ color: {
12
+ value: ["#3998D0", "#2EB6AF", "#A9BD33", "#FEC73B", "#F89930", "#F45623", "#D62E32", "#EB586E", "#9952CF"],
13
+ },
14
+ shape: {
15
+ type: "circle",
16
+ },
17
+ opacity: {
18
+ value: 1,
19
+ },
20
+ size: {
21
+ value: {
22
+ min: 10,
23
+ max: 15,
24
+ },
25
+ },
26
+ collisions: {
27
+ enable: true,
28
+ mode: "bounce",
29
+ },
30
+ move: {
31
+ enable: true,
32
+ speed: 3,
33
+ },
34
+ },
35
+ interactivity: {
36
+ events: {
37
+ onClick: {
38
+ enable: true,
39
+ mode: "pop",
40
+ },
41
+ },
42
+ },
43
+ background: {
44
+ color: "#000000",
45
+ },
46
+ emitters: {
47
+ direction: "none",
48
+ life: {
49
+ count: 0,
50
+ duration: 0.1,
51
+ delay: 0.1,
52
+ },
53
+ rate: {
54
+ delay: 0.1,
55
+ quantity: 1,
56
+ },
57
+ size: {
58
+ width: 100,
59
+ height: 100,
60
+ },
61
+ position: {
62
+ x: 50,
63
+ y: 50,
64
+ },
65
+ },
66
+ };
67
+ export default options;
@@ -69,7 +69,7 @@ const options = {
69
69
  density: {
70
70
  enable: true,
71
71
  },
72
- limit: 500,
72
+ limit: { value: 500 },
73
73
  value: 300,
74
74
  },
75
75
  opacity: {
@@ -70,7 +70,6 @@ const options = {
70
70
  },
71
71
  },
72
72
  number: {
73
- limit: -1,
74
73
  value: 160,
75
74
  },
76
75
  opacity: {
@@ -55,7 +55,6 @@ const options = {
55
55
  density: {
56
56
  enable: true,
57
57
  },
58
- limit: -1,
59
58
  value: 60,
60
59
  },
61
60
  opacity: {
@@ -44,7 +44,6 @@ const options = {
44
44
  speed: 1,
45
45
  },
46
46
  number: {
47
- limit: -1,
48
47
  value: 200,
49
48
  },
50
49
  opacity: {
@@ -45,7 +45,6 @@ const options = {
45
45
  enable: true,
46
46
  },
47
47
  number: {
48
- limit: -1,
49
48
  value: 50,
50
49
  },
51
50
  opacity: {
@@ -74,7 +74,6 @@ const options = {
74
74
  enable: true,
75
75
  },
76
76
  number: {
77
- limit: -1,
78
77
  value: 160,
79
78
  },
80
79
  opacity: {
package/browser/r/ring.js CHANGED
@@ -3,7 +3,7 @@ const options = {
3
3
  particles: {
4
4
  number: {
5
5
  value: 0,
6
- limit: 1000,
6
+ limit: { value: 1000 },
7
7
  },
8
8
  color: {
9
9
  value: "#ffffff",
@@ -1,7 +1,6 @@
1
1
  import seaAnemone from "./seaAnemone.js";
2
2
  import shadow from "./shadow.js";
3
3
  import shapeArrow from "./shapeArrow.js";
4
- import shapeBubble from "./shapeBubble.js";
5
4
  import shapeCog from "./shapeCog.js";
6
5
  import shapeHeart from "./shapeHeart.js";
7
6
  import shapeMultilineText from "./shapeMultilineText.js";
@@ -27,7 +26,6 @@ export default {
27
26
  seaAnemone,
28
27
  shadow,
29
28
  shapeArrow,
30
- shapeBubble,
31
29
  shapeCog,
32
30
  shapeHeart,
33
31
  shapeMultilineText,
@@ -16,9 +16,9 @@ const options = {
16
16
  },
17
17
  },
18
18
  shape: {
19
- type: "multiline-text",
19
+ type: "text",
20
20
  options: {
21
- "multiline-text": {
21
+ text: {
22
22
  value: "pippo\npluto",
23
23
  },
24
24
  },
@@ -3,7 +3,7 @@ const options = {
3
3
  particles: {
4
4
  number: {
5
5
  value: 200,
6
- limit: 200,
6
+ limit: { value: 200 },
7
7
  },
8
8
  color: {
9
9
  value: ["#ff0000", "#00ff00", "#0000ff", "#ffff00", "#ff00ff", "#00ffff"],
@@ -69,7 +69,6 @@ const options = {
69
69
  density: {
70
70
  enable: true,
71
71
  },
72
- limit: 0,
73
72
  value: 80,
74
73
  },
75
74
  opacity: {
package/browser/t/tilt.js CHANGED
@@ -42,7 +42,7 @@ const options = {
42
42
  },
43
43
  number: {
44
44
  value: 0,
45
- limit: 300,
45
+ limit: { value: 300 },
46
46
  },
47
47
  opacity: {
48
48
  value: 1,
@@ -21,7 +21,7 @@ const options = {
21
21
  particles: {
22
22
  number: {
23
23
  value: 0,
24
- limit: 300,
24
+ limit: { value: 300 },
25
25
  },
26
26
  color: {
27
27
  value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921"],
@@ -25,7 +25,7 @@ const options = {
25
25
  particles: {
26
26
  number: {
27
27
  value: 0,
28
- limit: 300,
28
+ limit: { value: 300 },
29
29
  },
30
30
  color: {
31
31
  value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921"],
@@ -42,7 +42,7 @@ const options = {
42
42
  },
43
43
  number: {
44
44
  value: 0,
45
- limit: 300,
45
+ limit: { value: 300 },
46
46
  },
47
47
  opacity: {
48
48
  value: 1,
package/cjs/c/connect.js CHANGED
@@ -66,7 +66,9 @@ const options = {
66
66
  density: {
67
67
  enable: true,
68
68
  },
69
- limit: 500,
69
+ limit: {
70
+ value: 500,
71
+ },
70
72
  value: 300,
71
73
  },
72
74
  opacity: {
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ name: "Curl Noise",
5
+ particles: {
6
+ number: {
7
+ value: 300,
8
+ },
9
+ color: {
10
+ value: "#ff0000",
11
+ animation: {
12
+ enable: true,
13
+ speed: 360,
14
+ sync: true,
15
+ },
16
+ },
17
+ shape: {
18
+ type: "circle",
19
+ },
20
+ size: {
21
+ value: 3,
22
+ },
23
+ move: {
24
+ path: {
25
+ clamp: false,
26
+ enable: true,
27
+ options: {
28
+ step: 250,
29
+ speed: 1,
30
+ },
31
+ delay: {
32
+ value: 0,
33
+ },
34
+ generator: "curlNoise",
35
+ },
36
+ enable: true,
37
+ speed: 3,
38
+ trail: {
39
+ fill: {
40
+ color: "#000",
41
+ },
42
+ enable: true,
43
+ length: 1000,
44
+ },
45
+ },
46
+ },
47
+ background: {
48
+ color: "#000000",
49
+ },
50
+ };
51
+ exports.default = options;
package/cjs/c/index.js CHANGED
@@ -11,6 +11,7 @@ const collisionsBounce_js_1 = __importDefault(require("./collisionsBounce.js"));
11
11
  const collisionsDestroy_js_1 = __importDefault(require("./collisionsDestroy.js"));
12
12
  const colorAnimation_js_1 = __importDefault(require("./colorAnimation.js"));
13
13
  const connect_js_1 = __importDefault(require("./connect.js"));
14
+ const curlNoise_js_1 = __importDefault(require("./curlNoise.js"));
14
15
  exports.default = {
15
16
  cards: cards_js_1.default,
16
17
  chars: chars_js_1.default,
@@ -20,4 +21,5 @@ exports.default = {
20
21
  collisionsDestroy: collisionsDestroy_js_1.default,
21
22
  colorAnimation: colorAnimation_js_1.default,
22
23
  connect: connect_js_1.default,
24
+ curlNoise: curlNoise_js_1.default,
23
25
  };
@@ -63,7 +63,6 @@ const options = {
63
63
  density: {
64
64
  enable: true,
65
65
  },
66
- limit: 0,
67
66
  value: 80,
68
67
  },
69
68
  opacity: {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const options = {
4
- name: "Shape Bubble",
4
+ name: "Effect Bubble",
5
5
  particles: {
6
6
  number: {
7
7
  value: 80,
@@ -17,9 +17,12 @@ const options = {
17
17
  sync: true,
18
18
  },
19
19
  },
20
- shape: {
20
+ effect: {
21
21
  type: "bubble",
22
22
  },
23
+ shape: {
24
+ type: ["circle", "square"],
25
+ },
23
26
  opacity: {
24
27
  value: 0.5,
25
28
  },
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ name: "Effect Trail",
5
+ particles: {
6
+ number: {
7
+ value: 80,
8
+ density: {
9
+ enable: true,
10
+ },
11
+ },
12
+ color: {
13
+ value: "#ff0000",
14
+ animation: {
15
+ enable: true,
16
+ speed: 360,
17
+ sync: true,
18
+ },
19
+ },
20
+ effect: {
21
+ type: "trail",
22
+ options: {
23
+ trail: {
24
+ length: {
25
+ min: 10,
26
+ max: 30,
27
+ },
28
+ },
29
+ },
30
+ },
31
+ shape: {
32
+ type: "circle",
33
+ },
34
+ size: {
35
+ value: 10,
36
+ },
37
+ move: {
38
+ path: {
39
+ enable: true,
40
+ options: {
41
+ size: 32,
42
+ draw: false,
43
+ increment: 0.004,
44
+ },
45
+ generator: "simplexNoise",
46
+ },
47
+ enable: true,
48
+ speed: 6,
49
+ },
50
+ },
51
+ background: {
52
+ color: "#000000",
53
+ },
54
+ };
55
+ exports.default = options;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rate = {
4
+ delay: 0.1,
5
+ quantity: 100,
6
+ };
7
+ const generateEmitter = (shape, options, fill, position) => {
8
+ return {
9
+ shape: {
10
+ replace: {
11
+ color: true,
12
+ opacity: true,
13
+ },
14
+ type: shape,
15
+ options,
16
+ },
17
+ position: position,
18
+ size: {
19
+ width: 500,
20
+ height: 500,
21
+ mode: "precise",
22
+ },
23
+ startCount: 300,
24
+ rate,
25
+ fill,
26
+ };
27
+ };
28
+ const options = {
29
+ name: "Emitter Image Shape",
30
+ particles: {
31
+ number: {
32
+ value: 0,
33
+ },
34
+ color: {
35
+ value: [
36
+ "#f44336",
37
+ "#e91e63",
38
+ "#9c27b0",
39
+ "#673ab7",
40
+ "#3f51b5",
41
+ "#2196f3",
42
+ "#03a9f4",
43
+ "#00bcd4",
44
+ "#009688",
45
+ "#4CAF50",
46
+ "#8BC34A",
47
+ "#CDDC39",
48
+ "#FFEB3B",
49
+ "#FFC107",
50
+ "#FF9800",
51
+ "#FF5722",
52
+ ],
53
+ },
54
+ life: {
55
+ count: 1,
56
+ duration: {
57
+ value: 1.5,
58
+ },
59
+ },
60
+ move: {
61
+ enable: true,
62
+ speed: 0.5,
63
+ },
64
+ shape: {
65
+ type: "circle",
66
+ },
67
+ opacity: {
68
+ value: 1,
69
+ },
70
+ size: {
71
+ value: { min: 1, max: 10 },
72
+ animation: {
73
+ enable: true,
74
+ speed: 30,
75
+ sync: true,
76
+ startValue: "min",
77
+ count: 2,
78
+ },
79
+ },
80
+ },
81
+ background: {
82
+ color: "#fff",
83
+ },
84
+ emitters: [
85
+ generateEmitter("canvas", {
86
+ scale: 5,
87
+ pixels: {
88
+ filter: "pixelFilter",
89
+ offset: 4,
90
+ },
91
+ image: {
92
+ src: "https://particles.js.org/images/amongus_cyan.png",
93
+ },
94
+ }, true, { x: 50, y: 50 }),
95
+ ],
96
+ };
97
+ exports.default = options;
@@ -12,7 +12,6 @@ const options = {
12
12
  density: {
13
13
  enable: true,
14
14
  },
15
- limit: 0,
16
15
  value: 80,
17
16
  },
18
17
  opacity: {