@tsparticles/configs 3.9.1 → 4.0.0-alpha.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 (352) hide show
  1. package/browser/a/amongUs.js +1 -1
  2. package/browser/b/backgroundMask.js +1 -1
  3. package/browser/b/backgroundMaskImage.js +2 -2
  4. package/browser/b/big.js +40 -3
  5. package/browser/c/curlNoise.js +7 -7
  6. package/browser/e/emitterImageShape.js +1 -1
  7. package/browser/e/emitterImages.js +16 -16
  8. package/browser/e/emitterPaths.js +5 -5
  9. package/browser/f/fallingConfetti.js +137 -0
  10. package/browser/f/fireworks.js +43 -6
  11. package/browser/f/fireworks2.js +39 -12
  12. package/browser/f/fireworksMask.js +195 -0
  13. package/browser/f/fontawesome.js +0 -5
  14. package/browser/f/forward.js +1 -1
  15. package/browser/f/index.js +4 -0
  16. package/browser/g/gravity.js +5 -5
  17. package/browser/g/index.js +1 -1
  18. package/browser/h/hexagonPath.js +5 -5
  19. package/browser/h/hollowknight.js +1 -1
  20. package/browser/h/hyperspace.js +5 -5
  21. package/browser/i/imageMask.js +1 -1
  22. package/browser/i/images.js +16 -16
  23. package/browser/i/imagesDirections.js +2 -2
  24. package/browser/index.js +5 -1
  25. package/browser/m/multiplePolygonMasks.js +1 -1
  26. package/browser/n/noisePlanesFractal.js +2 -2
  27. package/browser/n/noisePlanesPerlin.js +1 -1
  28. package/browser/n/noisePlanesSimplex.js +1 -1
  29. package/browser/p/pathSvg.js +7 -7
  30. package/browser/p/pathZigZag.js +7 -7
  31. package/browser/p/planes.js +1 -1
  32. package/browser/p/polygonMask.js +1 -1
  33. package/browser/r/randomShapes.js +16 -16
  34. package/browser/r/reactDefaults.js +0 -5
  35. package/browser/r/reactMultipleImages.js +3 -3
  36. package/browser/r/reactNightSky.js +0 -7
  37. package/browser/r/reactPolygonMask.js +1 -8
  38. package/browser/r/reactSimple.js +0 -18
  39. package/browser/r/reactSnow.js +0 -7
  40. package/browser/r/reduceDuplicates.js +16 -16
  41. package/browser/r/ring.js +5 -5
  42. package/browser/s/seaAnemone.js +5 -5
  43. package/browser/s/shadow.js +12 -7
  44. package/browser/s/shapeOptions.js +2 -2
  45. package/browser/s/speedDecay.js +5 -5
  46. package/browser/s/spin.js +5 -5
  47. package/browser/s/style.js +7 -7
  48. package/browser/t/trail.js +7 -7
  49. package/browser/t/trailImage.js +9 -9
  50. package/browser/v/virus.js +1 -1
  51. package/cjs/a/absorbers.js +1 -3
  52. package/cjs/a/amongUs.js +2 -4
  53. package/cjs/a/index.js +5 -10
  54. package/cjs/b/backgroundMask.js +2 -4
  55. package/cjs/b/backgroundMaskImage.js +3 -5
  56. package/cjs/b/basic.js +1 -3
  57. package/cjs/b/big.js +41 -6
  58. package/cjs/b/blackHole.js +1 -3
  59. package/cjs/b/bubble.js +1 -3
  60. package/cjs/b/index.js +13 -18
  61. package/cjs/bundle.js +1 -17
  62. package/cjs/c/cards.js +1 -3
  63. package/cjs/c/chars.js +1 -3
  64. package/cjs/c/clickConfetti.js +1 -3
  65. package/cjs/c/clickPause.js +1 -3
  66. package/cjs/c/collisionsAbsorb.js +1 -3
  67. package/cjs/c/collisionsBounce.js +1 -3
  68. package/cjs/c/collisionsDestroy.js +1 -3
  69. package/cjs/c/colorAnimation.js +1 -3
  70. package/cjs/c/connect.js +1 -3
  71. package/cjs/c/curlNoise.js +8 -10
  72. package/cjs/c/index.js +19 -24
  73. package/cjs/d/dataImages.js +1 -3
  74. package/cjs/d/delay.js +1 -3
  75. package/cjs/d/delayColor.js +1 -3
  76. package/cjs/d/delayOpacity.js +1 -3
  77. package/cjs/d/delaySize.js +1 -3
  78. package/cjs/d/delayStrokeColor.js +1 -3
  79. package/cjs/d/destroy.js +1 -3
  80. package/cjs/d/disappearing.js +1 -3
  81. package/cjs/d/divEvents.js +1 -3
  82. package/cjs/d/index.js +19 -24
  83. package/cjs/e/effectBubble.js +1 -3
  84. package/cjs/e/effectTrail.js +1 -3
  85. package/cjs/e/effectTrailTransform.js +1 -3
  86. package/cjs/e/emitter.js +1 -3
  87. package/cjs/e/emitterAbsorber.js +1 -3
  88. package/cjs/e/emitterAngled.js +1 -3
  89. package/cjs/e/emitterImageShape.js +2 -4
  90. package/cjs/e/emitterImages.js +17 -19
  91. package/cjs/e/emitterPaths.js +6 -8
  92. package/cjs/e/emitterShapes.js +1 -3
  93. package/cjs/e/emitterSpawnColor.js +7 -9
  94. package/cjs/e/emitterTextShape.js +1 -3
  95. package/cjs/e/emitterTextStrokeShape.js +1 -3
  96. package/cjs/e/index.js +27 -32
  97. package/cjs/f/fallingConfetti.js +137 -0
  98. package/cjs/f/fireworks.js +46 -11
  99. package/cjs/f/fireworks2.js +42 -17
  100. package/cjs/f/fireworksMask.js +195 -0
  101. package/cjs/f/fontawesome.js +1 -8
  102. package/cjs/f/forward.js +2 -4
  103. package/cjs/f/index.js +13 -14
  104. package/cjs/g/gifs.js +1 -3
  105. package/cjs/g/grabRandomColor.js +1 -3
  106. package/cjs/g/gradients.js +10 -12
  107. package/cjs/g/gravity.js +6 -8
  108. package/cjs/g/groups.js +1 -3
  109. package/cjs/g/growing.js +1 -3
  110. package/cjs/g/index.js +13 -18
  111. package/cjs/h/hexagonPath.js +6 -8
  112. package/cjs/h/hollowknight.js +2 -4
  113. package/cjs/h/hyperspace.js +6 -8
  114. package/cjs/h/index.js +7 -12
  115. package/cjs/i/imageMask.js +2 -4
  116. package/cjs/i/images.js +17 -19
  117. package/cjs/i/imagesDirections.js +6 -8
  118. package/cjs/i/index.js +9 -14
  119. package/cjs/i/infection.js +1 -3
  120. package/cjs/index.js +59 -60
  121. package/cjs/j/index.js +1 -3
  122. package/cjs/k/index.js +1 -3
  123. package/cjs/l/index.js +11 -16
  124. package/cjs/l/lch.js +1 -3
  125. package/cjs/l/life.js +1 -3
  126. package/cjs/l/lightHover.js +1 -3
  127. package/cjs/l/linkTriangles.js +1 -3
  128. package/cjs/l/localPolygonMask.js +1 -3
  129. package/cjs/m/index.js +33 -38
  130. package/cjs/m/manual.js +1 -3
  131. package/cjs/m/motionDisable.js +1 -3
  132. package/cjs/m/motionReduce.js +1 -3
  133. package/cjs/m/mouseAttract.js +1 -3
  134. package/cjs/m/mouseBounce.js +1 -3
  135. package/cjs/m/mouseFollow.js +1 -3
  136. package/cjs/m/mouseParticle.js +1 -3
  137. package/cjs/m/mouseParticle2.js +1 -3
  138. package/cjs/m/mouseTrail.js +1 -3
  139. package/cjs/m/mouseTrailNoise.js +1 -3
  140. package/cjs/m/moveAngle.js +1 -3
  141. package/cjs/m/moveDistance.js +1 -3
  142. package/cjs/m/moveInside.js +1 -3
  143. package/cjs/m/moveOutside.js +1 -3
  144. package/cjs/m/multipleClickEmitters.js +1 -3
  145. package/cjs/m/multiplePolygonMasks.js +2 -4
  146. package/cjs/n/index.js +19 -24
  147. package/cjs/n/namedColors.js +1 -3
  148. package/cjs/n/nasa.js +1 -3
  149. package/cjs/n/noClear.js +1 -3
  150. package/cjs/n/noConfig.js +1 -3
  151. package/cjs/n/noisePlanesFractal.js +3 -5
  152. package/cjs/n/noisePlanesPerlin.js +2 -4
  153. package/cjs/n/noisePlanesSimplex.js +2 -4
  154. package/cjs/n/nyancat.js +1 -3
  155. package/cjs/n/nyancat2.js +1 -3
  156. package/cjs/o/index.js +5 -10
  157. package/cjs/o/oklch.js +1 -3
  158. package/cjs/o/orbit.js +1 -3
  159. package/cjs/p/index.js +21 -26
  160. package/cjs/p/parallax.js +1 -3
  161. package/cjs/p/pathPolygonMask.js +1 -3
  162. package/cjs/p/pathSvg.js +8 -10
  163. package/cjs/p/pathZigZag.js +8 -10
  164. package/cjs/p/planes.js +2 -4
  165. package/cjs/p/plasma.js +1 -3
  166. package/cjs/p/poisson.js +1 -3
  167. package/cjs/p/polygonMask.js +2 -4
  168. package/cjs/p/polygons.js +1 -3
  169. package/cjs/p/pop.js +3 -5
  170. package/cjs/q/index.js +1 -3
  171. package/cjs/r/index.js +41 -46
  172. package/cjs/r/random.js +1 -3
  173. package/cjs/r/randomShapes.js +17 -19
  174. package/cjs/r/reactBubbles.js +1 -3
  175. package/cjs/r/reactDefaults.js +1 -8
  176. package/cjs/r/reactMultipleImages.js +4 -6
  177. package/cjs/r/reactNightSky.js +1 -10
  178. package/cjs/r/reactPolygonMask.js +2 -11
  179. package/cjs/r/reactSimple.js +1 -21
  180. package/cjs/r/reactSnow.js +1 -10
  181. package/cjs/r/reduceDuplicates.js +17 -19
  182. package/cjs/r/repulse.js +1 -3
  183. package/cjs/r/repulseBack.js +1 -3
  184. package/cjs/r/repulseCirc.js +1 -3
  185. package/cjs/r/repulseCubic.js +1 -3
  186. package/cjs/r/repulseExpo.js +1 -3
  187. package/cjs/r/repulseQuart.js +1 -3
  188. package/cjs/r/repulseQuint.js +1 -3
  189. package/cjs/r/repulseSine.js +1 -3
  190. package/cjs/r/responsive.js +1 -3
  191. package/cjs/r/ring.js +6 -8
  192. package/cjs/s/index.js +55 -60
  193. package/cjs/s/seaAnemone.js +6 -8
  194. package/cjs/s/shadow.js +13 -10
  195. package/cjs/s/shapeArrow.js +1 -3
  196. package/cjs/s/shapeCog.js +1 -3
  197. package/cjs/s/shapeEmoji.js +7 -9
  198. package/cjs/s/shapeEmojiPadding.js +1 -3
  199. package/cjs/s/shapeHeart.js +1 -3
  200. package/cjs/s/shapeInfinity.js +1 -3
  201. package/cjs/s/shapeMultilineText.js +1 -3
  202. package/cjs/s/shapeOptions.js +3 -5
  203. package/cjs/s/shapePath.js +1 -3
  204. package/cjs/s/shapeRoundedPolygon.js +1 -3
  205. package/cjs/s/shapeRoundedRect.js +1 -3
  206. package/cjs/s/shapeSpiral.js +1 -3
  207. package/cjs/s/slow.js +1 -3
  208. package/cjs/s/snow.js +1 -3
  209. package/cjs/s/soundsAudio.js +1 -3
  210. package/cjs/s/soundsLoop.js +1 -3
  211. package/cjs/s/soundsMelodies.js +1 -3
  212. package/cjs/s/soundsMelodyLoop.js +1 -3
  213. package/cjs/s/soundsNotes.js +1 -3
  214. package/cjs/s/speedDecay.js +6 -8
  215. package/cjs/s/spin.js +6 -8
  216. package/cjs/s/star.js +1 -3
  217. package/cjs/s/strokeAnimation.js +1 -3
  218. package/cjs/s/style.js +8 -10
  219. package/cjs/s/svgReplace.js +1 -3
  220. package/cjs/t/index.js +19 -24
  221. package/cjs/t/test.js +1 -3
  222. package/cjs/t/textMask.js +1 -3
  223. package/cjs/t/textMaskMultiline.js +1 -3
  224. package/cjs/t/themes.js +1 -3
  225. package/cjs/t/tilt.js +1 -3
  226. package/cjs/t/trail.js +8 -10
  227. package/cjs/t/trailImage.js +10 -12
  228. package/cjs/t/triangles.js +1 -3
  229. package/cjs/t/twinkle.js +1 -3
  230. package/cjs/u/index.js +1 -3
  231. package/cjs/v/index.js +5 -10
  232. package/cjs/v/vibrate.js +1 -3
  233. package/cjs/v/virus.js +2 -4
  234. package/cjs/w/index.js +7 -12
  235. package/cjs/w/warp.js +1 -3
  236. package/cjs/w/wobble.js +1 -3
  237. package/cjs/w/wobbleBig.js +1 -3
  238. package/cjs/x/index.js +1 -3
  239. package/cjs/y/index.js +1 -3
  240. package/cjs/z/index.js +3 -8
  241. package/cjs/z/zIndex.js +1 -3
  242. package/esm/a/amongUs.js +1 -1
  243. package/esm/b/backgroundMask.js +1 -1
  244. package/esm/b/backgroundMaskImage.js +2 -2
  245. package/esm/b/big.js +40 -3
  246. package/esm/c/curlNoise.js +7 -7
  247. package/esm/e/emitterImageShape.js +1 -1
  248. package/esm/e/emitterImages.js +16 -16
  249. package/esm/e/emitterPaths.js +5 -5
  250. package/esm/f/fallingConfetti.js +137 -0
  251. package/esm/f/fireworks.js +43 -6
  252. package/esm/f/fireworks2.js +39 -12
  253. package/esm/f/fireworksMask.js +195 -0
  254. package/esm/f/fontawesome.js +0 -5
  255. package/esm/f/forward.js +1 -1
  256. package/esm/f/index.js +4 -0
  257. package/esm/g/gravity.js +5 -5
  258. package/esm/g/index.js +1 -1
  259. package/esm/h/hexagonPath.js +5 -5
  260. package/esm/h/hollowknight.js +1 -1
  261. package/esm/h/hyperspace.js +5 -5
  262. package/esm/i/imageMask.js +1 -1
  263. package/esm/i/images.js +16 -16
  264. package/esm/i/imagesDirections.js +2 -2
  265. package/esm/index.js +5 -1
  266. package/esm/m/multiplePolygonMasks.js +1 -1
  267. package/esm/n/noisePlanesFractal.js +2 -2
  268. package/esm/n/noisePlanesPerlin.js +1 -1
  269. package/esm/n/noisePlanesSimplex.js +1 -1
  270. package/esm/p/pathSvg.js +7 -7
  271. package/esm/p/pathZigZag.js +7 -7
  272. package/esm/p/planes.js +1 -1
  273. package/esm/p/polygonMask.js +1 -1
  274. package/esm/r/randomShapes.js +16 -16
  275. package/esm/r/reactDefaults.js +0 -5
  276. package/esm/r/reactMultipleImages.js +3 -3
  277. package/esm/r/reactNightSky.js +0 -7
  278. package/esm/r/reactPolygonMask.js +1 -8
  279. package/esm/r/reactSimple.js +0 -18
  280. package/esm/r/reactSnow.js +0 -7
  281. package/esm/r/reduceDuplicates.js +16 -16
  282. package/esm/r/ring.js +5 -5
  283. package/esm/s/seaAnemone.js +5 -5
  284. package/esm/s/shadow.js +12 -7
  285. package/esm/s/shapeOptions.js +2 -2
  286. package/esm/s/speedDecay.js +5 -5
  287. package/esm/s/spin.js +5 -5
  288. package/esm/s/style.js +7 -7
  289. package/esm/t/trail.js +7 -7
  290. package/esm/t/trailImage.js +9 -9
  291. package/esm/v/virus.js +1 -1
  292. package/package.json +4 -3
  293. package/report.html +6 -5
  294. package/tsparticles.configs.bundle.js +5 -5
  295. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  296. package/tsparticles.configs.js +643 -629
  297. package/tsparticles.configs.min.js +1 -1
  298. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  299. package/types/f/fallingConfetti.d.ts +3 -0
  300. package/types/f/fireworksMask.d.ts +3 -0
  301. package/types/f/index.d.ts +2 -0
  302. package/types/index.d.ts +2 -0
  303. package/umd/a/amongUs.js +1 -1
  304. package/umd/b/backgroundMask.js +1 -1
  305. package/umd/b/backgroundMaskImage.js +2 -2
  306. package/umd/b/big.js +40 -3
  307. package/umd/c/curlNoise.js +7 -7
  308. package/umd/e/emitterImageShape.js +1 -1
  309. package/umd/e/emitterImages.js +16 -16
  310. package/umd/e/emitterPaths.js +5 -5
  311. package/umd/f/fallingConfetti.js +149 -0
  312. package/umd/f/fireworks.js +43 -6
  313. package/umd/f/fireworks2.js +39 -12
  314. package/umd/f/fireworksMask.js +207 -0
  315. package/umd/f/fontawesome.js +0 -5
  316. package/umd/f/forward.js +1 -1
  317. package/umd/f/index.js +5 -1
  318. package/umd/g/gravity.js +5 -5
  319. package/umd/g/index.js +3 -3
  320. package/umd/h/hexagonPath.js +5 -5
  321. package/umd/h/hollowknight.js +1 -1
  322. package/umd/h/hyperspace.js +5 -5
  323. package/umd/i/imageMask.js +1 -1
  324. package/umd/i/images.js +16 -16
  325. package/umd/i/imagesDirections.js +2 -2
  326. package/umd/index.js +5 -1
  327. package/umd/m/multiplePolygonMasks.js +1 -1
  328. package/umd/n/noisePlanesFractal.js +2 -2
  329. package/umd/n/noisePlanesPerlin.js +1 -1
  330. package/umd/n/noisePlanesSimplex.js +1 -1
  331. package/umd/p/pathSvg.js +7 -7
  332. package/umd/p/pathZigZag.js +7 -7
  333. package/umd/p/planes.js +1 -1
  334. package/umd/p/polygonMask.js +1 -1
  335. package/umd/r/randomShapes.js +16 -16
  336. package/umd/r/reactDefaults.js +0 -5
  337. package/umd/r/reactMultipleImages.js +3 -3
  338. package/umd/r/reactNightSky.js +0 -7
  339. package/umd/r/reactPolygonMask.js +1 -8
  340. package/umd/r/reactSimple.js +0 -18
  341. package/umd/r/reactSnow.js +0 -7
  342. package/umd/r/reduceDuplicates.js +16 -16
  343. package/umd/r/ring.js +5 -5
  344. package/umd/s/seaAnemone.js +5 -5
  345. package/umd/s/shadow.js +12 -7
  346. package/umd/s/shapeOptions.js +2 -2
  347. package/umd/s/speedDecay.js +5 -5
  348. package/umd/s/spin.js +5 -5
  349. package/umd/s/style.js +7 -7
  350. package/umd/t/trail.js +7 -7
  351. package/umd/t/trailImage.js +9 -9
  352. package/umd/v/virus.js +1 -1
@@ -0,0 +1,195 @@
1
+ import { EventType } from "@tsparticles/engine";
2
+ const options = {
3
+ key: "fireworksMask",
4
+ name: "Fireworks Background Mask",
5
+ fullScreen: {
6
+ enable: true,
7
+ },
8
+ background: {
9
+ color: "#ffffff",
10
+ image: "url('https://particles.js.org/images/hdr/background3.jpg')",
11
+ position: "50% 50%",
12
+ repeat: "no-repeat",
13
+ size: "cover",
14
+ },
15
+ backgroundMask: {
16
+ enable: true,
17
+ cover: {
18
+ color: "#000",
19
+ },
20
+ },
21
+ emitters: {
22
+ direction: "top",
23
+ life: {
24
+ count: 0,
25
+ duration: 0.1,
26
+ delay: 0.1,
27
+ },
28
+ rate: {
29
+ delay: 0.15,
30
+ quantity: 1,
31
+ },
32
+ size: {
33
+ width: 100,
34
+ height: 0,
35
+ },
36
+ position: {
37
+ y: 100,
38
+ x: 50,
39
+ },
40
+ },
41
+ particles: {
42
+ color: {
43
+ value: "#fff",
44
+ },
45
+ number: {
46
+ value: 0,
47
+ },
48
+ destroy: {
49
+ bounds: {
50
+ top: 30,
51
+ },
52
+ mode: "split",
53
+ split: {
54
+ count: 1,
55
+ factor: {
56
+ value: 0.333333,
57
+ },
58
+ rate: {
59
+ value: 100,
60
+ },
61
+ particles: {
62
+ stroke: {
63
+ width: 0,
64
+ },
65
+ color: {
66
+ value: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"],
67
+ },
68
+ number: {
69
+ value: 0,
70
+ },
71
+ collisions: {
72
+ enable: false,
73
+ },
74
+ destroy: {
75
+ bounds: {
76
+ top: 0,
77
+ },
78
+ },
79
+ opacity: {
80
+ value: {
81
+ min: 0.1,
82
+ max: 1,
83
+ },
84
+ animation: {
85
+ enable: true,
86
+ speed: 0.7,
87
+ sync: false,
88
+ startValue: "max",
89
+ destroy: "min",
90
+ },
91
+ },
92
+ effect: {
93
+ type: "trail",
94
+ options: {
95
+ trail: {
96
+ length: {
97
+ min: 5,
98
+ max: 10,
99
+ },
100
+ },
101
+ },
102
+ },
103
+ shape: {
104
+ type: "circle",
105
+ },
106
+ size: {
107
+ value: 2,
108
+ animation: {
109
+ enable: false,
110
+ },
111
+ },
112
+ life: {
113
+ count: 1,
114
+ duration: {
115
+ value: {
116
+ min: 1,
117
+ max: 2,
118
+ },
119
+ },
120
+ },
121
+ move: {
122
+ enable: true,
123
+ gravity: {
124
+ enable: true,
125
+ acceleration: 9.81,
126
+ inverse: false,
127
+ },
128
+ decay: 0.1,
129
+ speed: {
130
+ min: 10,
131
+ max: 25,
132
+ },
133
+ direction: "outside",
134
+ outModes: "destroy",
135
+ },
136
+ },
137
+ },
138
+ },
139
+ life: {
140
+ count: 1,
141
+ },
142
+ effect: {
143
+ type: "trail",
144
+ options: {
145
+ trail: {
146
+ length: {
147
+ min: 10,
148
+ max: 30,
149
+ },
150
+ minWidth: 1,
151
+ maxWidth: 1,
152
+ },
153
+ },
154
+ },
155
+ shape: {
156
+ type: "circle",
157
+ },
158
+ size: {
159
+ value: 1,
160
+ },
161
+ move: {
162
+ enable: true,
163
+ gravity: {
164
+ acceleration: 15,
165
+ enable: true,
166
+ inverse: true,
167
+ maxSpeed: 100,
168
+ },
169
+ speed: {
170
+ min: 10,
171
+ max: 20,
172
+ },
173
+ outModes: {
174
+ default: "destroy",
175
+ top: "none",
176
+ },
177
+ },
178
+ },
179
+ sounds: {
180
+ enable: true,
181
+ events: [
182
+ {
183
+ event: EventType.particleRemoved,
184
+ filter: (args) => args.data.particle.options.move.gravity.inverse,
185
+ audio: [
186
+ "https://particles.js.org/audio/explosion0.mp3",
187
+ "https://particles.js.org/audio/explosion1.mp3",
188
+ "https://particles.js.org/audio/explosion2.mp3",
189
+ ],
190
+ },
191
+ ],
192
+ volume: 50,
193
+ },
194
+ };
195
+ export default options;
@@ -33,11 +33,6 @@ const options = {
33
33
  distance: 150,
34
34
  enable: true,
35
35
  opacity: 0.4,
36
- shadow: {
37
- blur: 5,
38
- color: "lime",
39
- enable: false,
40
- },
41
36
  width: 1,
42
37
  },
43
38
  move: {
@@ -27,7 +27,7 @@ const options = {
27
27
  type: "image",
28
28
  options: {
29
29
  image: {
30
- src: "https://particles.js.org/images/arrow.png",
30
+ src: "https://particles.js.org/images/hdr/arrow.png",
31
31
  width: 512,
32
32
  height: 512,
33
33
  replaceColor: true,
@@ -1,10 +1,14 @@
1
+ import fallingConfetti from "./fallingConfetti.js";
1
2
  import fireworks from "./fireworks.js";
2
3
  import fireworks2 from "./fireworks2.js";
4
+ import fireworksMask from "./fireworksMask.js";
3
5
  import fontawesome from "./fontawesome.js";
4
6
  import forward from "./forward.js";
5
7
  export default {
8
+ fallingConfetti,
6
9
  fireworks,
7
10
  fireworks2,
11
+ fireworksMask,
8
12
  fontawesome,
9
13
  forward,
10
14
  };
@@ -47,11 +47,6 @@ const options = {
47
47
  default: "bounce",
48
48
  top: "none",
49
49
  },
50
- trail: {
51
- enable: true,
52
- fill: { color: "#000000" },
53
- length: 10,
54
- },
55
50
  },
56
51
  },
57
52
  background: {
@@ -112,5 +107,10 @@ const options = {
112
107
  },
113
108
  },
114
109
  },
110
+ trail: {
111
+ enable: true,
112
+ fill: { color: "#000000" },
113
+ length: 10,
114
+ },
115
115
  };
116
116
  export default options;
@@ -2,7 +2,7 @@ import gifs from "./gifs.js";
2
2
  import grabRandomColor from "./grabRandomColor.js";
3
3
  import gradients from "./gradients.js";
4
4
  import gravity from "./gravity.js";
5
- import groups from "./groups";
5
+ import groups from "./groups.js";
6
6
  import growing from "./growing.js";
7
7
  export default {
8
8
  gifs,
@@ -29,11 +29,6 @@ const options = {
29
29
  },
30
30
  },
31
31
  speed: 3,
32
- trail: {
33
- fill: { color: "#000" },
34
- length: 20,
35
- enable: true,
36
- },
37
32
  },
38
33
  number: {
39
34
  density: {
@@ -69,5 +64,10 @@ const options = {
69
64
  y: 50,
70
65
  },
71
66
  },
67
+ trail: {
68
+ fill: { color: "#000" },
69
+ length: 20,
70
+ enable: true,
71
+ },
72
72
  };
73
73
  export default options;
@@ -105,7 +105,7 @@ const options = {
105
105
  },
106
106
  scale: 2,
107
107
  type: "inline",
108
- url: "https://particles.js.org/images/hollowknight.svg",
108
+ url: "https://particles.js.org/images/hdr/hollowknight.svg",
109
109
  },
110
110
  background: {
111
111
  color: "#000000",
@@ -14,11 +14,6 @@ const options = {
14
14
  default: "destroy",
15
15
  },
16
16
  speed: 3,
17
- trail: {
18
- fill: { color: "#000" },
19
- length: 30,
20
- enable: true,
21
- },
22
17
  },
23
18
  number: {
24
19
  density: {
@@ -61,5 +56,10 @@ const options = {
61
56
  y: 50,
62
57
  },
63
58
  },
59
+ trail: {
60
+ fill: { color: "#000" },
61
+ length: 30,
62
+ enable: true,
63
+ },
64
64
  };
65
65
  export default options;
@@ -52,7 +52,7 @@ const minFilterValue = 30, minFilterAlpha = 0, options = {
52
52
  : pixel.a > minFilterAlpha,
53
53
  },
54
54
  image: {
55
- src: "https://particles.js.org/images/amongus_cyan.png",
55
+ src: "https://particles.js.org/images/hdr/amongus_cyan.png",
56
56
  },
57
57
  },
58
58
  background: {
@@ -117,97 +117,97 @@ const options = {
117
117
  },
118
118
  preload: [
119
119
  {
120
- src: "https://particles.js.org/images/fruits/apple.png",
120
+ src: "https://particles.js.org/images/hdr/fruits/apple.png",
121
121
  name: "apple",
122
122
  width: 32,
123
123
  height: 32,
124
124
  },
125
125
  {
126
- src: "https://particles.js.org/images/fruits/avocado.png",
126
+ src: "https://particles.js.org/images/hdr/fruits/avocado.png",
127
127
  name: "avocado",
128
128
  width: 32,
129
129
  height: 32,
130
130
  },
131
131
  {
132
- src: "https://particles.js.org/images/fruits/banana.png",
132
+ src: "https://particles.js.org/images/hdr/fruits/banana.png",
133
133
  name: "banana",
134
134
  width: 32,
135
135
  height: 32,
136
136
  },
137
137
  {
138
- src: "https://particles.js.org/images/fruits/berries.png",
138
+ src: "https://particles.js.org/images/hdr/fruits/berries.png",
139
139
  name: "berries",
140
140
  width: 32,
141
141
  height: 32,
142
142
  },
143
143
  {
144
- src: "https://particles.js.org/images/fruits/cherry.png",
144
+ src: "https://particles.js.org/images/hdr/fruits/cherry.png",
145
145
  name: "cherry",
146
146
  width: 32,
147
147
  height: 32,
148
148
  },
149
149
  {
150
- src: "https://particles.js.org/images/fruits/grapes.png",
150
+ src: "https://particles.js.org/images/hdr/fruits/grapes.png",
151
151
  name: "grapes",
152
152
  width: 32,
153
153
  height: 32,
154
154
  },
155
155
  {
156
- src: "https://particles.js.org/images/fruits/lemon.png",
156
+ src: "https://particles.js.org/images/hdr/fruits/lemon.png",
157
157
  name: "lemon",
158
158
  width: 32,
159
159
  height: 32,
160
160
  },
161
161
  {
162
- src: "https://particles.js.org/images/fruits/orange.png",
162
+ src: "https://particles.js.org/images/hdr/fruits/orange.png",
163
163
  name: "orange",
164
164
  width: 32,
165
165
  height: 32,
166
166
  },
167
167
  {
168
- src: "https://particles.js.org/images/fruits/peach.png",
168
+ src: "https://particles.js.org/images/hdr/fruits/peach.png",
169
169
  name: "peach",
170
170
  width: 32,
171
171
  height: 32,
172
172
  },
173
173
  {
174
- src: "https://particles.js.org/images/fruits/pear.png",
174
+ src: "https://particles.js.org/images/hdr/fruits/pear.png",
175
175
  name: "pear",
176
176
  width: 32,
177
177
  height: 32,
178
178
  },
179
179
  {
180
- src: "https://particles.js.org/images/fruits/pepper.png",
180
+ src: "https://particles.js.org/images/hdr/fruits/pepper.png",
181
181
  name: "pepper",
182
182
  width: 32,
183
183
  height: 32,
184
184
  },
185
185
  {
186
- src: "https://particles.js.org/images/fruits/plum.png",
186
+ src: "https://particles.js.org/images/hdr/fruits/plum.png",
187
187
  name: "plum",
188
188
  width: 32,
189
189
  height: 32,
190
190
  },
191
191
  {
192
- src: "https://particles.js.org/images/fruits/star.png",
192
+ src: "https://particles.js.org/images/hdr/fruits/star.png",
193
193
  name: "star",
194
194
  width: 32,
195
195
  height: 32,
196
196
  },
197
197
  {
198
- src: "https://particles.js.org/images/fruits/strawberry.png",
198
+ src: "https://particles.js.org/images/hdr/fruits/strawberry.png",
199
199
  name: "strawberry",
200
200
  width: 32,
201
201
  height: 32,
202
202
  },
203
203
  {
204
- src: "https://particles.js.org/images/fruits/watermelon.png",
204
+ src: "https://particles.js.org/images/hdr/fruits/watermelon.png",
205
205
  name: "watermelon",
206
206
  width: 32,
207
207
  height: 32,
208
208
  },
209
209
  {
210
- src: "https://particles.js.org/images/fruits/watermelon_slice.png",
210
+ src: "https://particles.js.org/images/hdr/fruits/watermelon_slice.png",
211
211
  name: "watermelon_slice",
212
212
  width: 32,
213
213
  height: 32,
@@ -57,7 +57,7 @@ const options = {
57
57
  options: {
58
58
  image: [
59
59
  {
60
- src: "https://particles.js.org/images/fruits/apple.png",
60
+ src: "https://particles.js.org/images/hdr/fruits/apple.png",
61
61
  width: 32,
62
62
  height: 32,
63
63
  particles: {
@@ -67,7 +67,7 @@ const options = {
67
67
  },
68
68
  },
69
69
  {
70
- src: "https://particles.js.org/images/fruits/avocado.png",
70
+ src: "https://particles.js.org/images/hdr/fruits/avocado.png",
71
71
  width: 32,
72
72
  height: 32,
73
73
  particles: {
package/browser/index.js CHANGED
@@ -54,6 +54,10 @@ const configs = {
54
54
  ...z,
55
55
  };
56
56
  for (const key of Object.keys(configs)) {
57
- tsParticles.addConfig(configs[key]);
57
+ const config = configs[key];
58
+ if (!config) {
59
+ continue;
60
+ }
61
+ tsParticles.addConfig(config);
58
62
  }
59
63
  export default configs;
@@ -115,7 +115,7 @@ const options = {
115
115
  },
116
116
  scale: 1,
117
117
  type: "inline",
118
- url: "https://particles.js.org/images/google.svg",
118
+ url: "https://particles.js.org/images/hdr/google.svg",
119
119
  },
120
120
  background: {
121
121
  color: "#000000",
@@ -42,7 +42,7 @@ const options = {
42
42
  path: {
43
43
  enable: true,
44
44
  options: {
45
- size: 32,
45
+ size: 64,
46
46
  draw: false,
47
47
  increment: 0.004,
48
48
  },
@@ -68,7 +68,7 @@ const options = {
68
68
  options: {
69
69
  image: {
70
70
  height: 128,
71
- src: "https://particles.js.org/images/plane_alt.png",
71
+ src: "https://particles.js.org/images/hdr/plane_alt.png",
72
72
  width: 128,
73
73
  },
74
74
  },
@@ -68,7 +68,7 @@ const options = {
68
68
  options: {
69
69
  image: {
70
70
  height: 128,
71
- src: "https://particles.js.org/images/plane_alt.png",
71
+ src: "https://particles.js.org/images/hdr/plane_alt.png",
72
72
  width: 128,
73
73
  },
74
74
  },
@@ -68,7 +68,7 @@ const options = {
68
68
  options: {
69
69
  image: {
70
70
  height: 128,
71
- src: "https://particles.js.org/images/plane_alt.png",
71
+ src: "https://particles.js.org/images/hdr/plane_alt.png",
72
72
  width: 128,
73
73
  },
74
74
  },
@@ -24,13 +24,6 @@ const options = {
24
24
  },
25
25
  generator: "svgPathGenerator",
26
26
  },
27
- trail: {
28
- enable: true,
29
- length: 10,
30
- fill: {
31
- color: "#000000",
32
- },
33
- },
34
27
  },
35
28
  number: {
36
29
  value: 80,
@@ -48,5 +41,12 @@ const options = {
48
41
  background: {
49
42
  color: "#000000",
50
43
  },
44
+ trail: {
45
+ enable: true,
46
+ length: 10,
47
+ fill: {
48
+ color: "#000000",
49
+ },
50
+ },
51
51
  };
52
52
  export default options;
@@ -17,13 +17,6 @@ const options = {
17
17
  },
18
18
  generator: "zigZagPathGenerator",
19
19
  },
20
- trail: {
21
- enable: true,
22
- length: 20,
23
- fill: {
24
- color: "#000000",
25
- },
26
- },
27
20
  },
28
21
  number: {
29
22
  value: 80,
@@ -41,5 +34,12 @@ const options = {
41
34
  background: {
42
35
  color: "#000000",
43
36
  },
37
+ trail: {
38
+ enable: true,
39
+ length: 20,
40
+ fill: {
41
+ color: "#000000",
42
+ },
43
+ },
44
44
  };
45
45
  export default options;
@@ -39,7 +39,7 @@ const options = {
39
39
  options: {
40
40
  image: {
41
41
  height: 128,
42
- src: "https://particles.js.org/images/plane_alt.png",
42
+ src: "https://particles.js.org/images/hdr/plane_alt.png",
43
43
  width: 128,
44
44
  },
45
45
  },
@@ -115,7 +115,7 @@ const options = {
115
115
  },
116
116
  scale: 0.5,
117
117
  type: "inline",
118
- url: "https://particles.js.org/images/smalldeer.svg",
118
+ url: "https://particles.js.org/images/hdr/smalldeer.svg",
119
119
  },
120
120
  background: {
121
121
  color: "#000000",