canvasparticles-js 3.6.4 → 3.6.6
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/README.md +3 -3
- package/canvasParticles.js +1 -1
- package/canvasParticles.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -180,7 +180,7 @@ instance = new CanvasParticles(canvasElement, options)
|
|
|
180
180
|
|
|
181
181
|
### Chaining methods
|
|
182
182
|
|
|
183
|
-
You can chain
|
|
183
|
+
You can chain `.start()` for a cleaner syntax:
|
|
184
184
|
|
|
185
185
|
```js
|
|
186
186
|
instance = new CanvasParticles(selector).start()
|
|
@@ -212,7 +212,7 @@ canvas = new CanvasParticles(selector).anyOtherMethod().canvas
|
|
|
212
212
|
## Options
|
|
213
213
|
|
|
214
214
|
Configuration options for the particles and their behavior.<br>
|
|
215
|
-
Play around with these values: [Sandbox](
|
|
215
|
+
Play around with these values: [Sandbox](https://canvasparticleshomepage.onrender.com/src/#sandbox)
|
|
216
216
|
|
|
217
217
|
<details>
|
|
218
218
|
<summary><h3>Options structure</h3></summary>
|
|
@@ -421,7 +421,7 @@ particles.setOptions(options)
|
|
|
421
421
|
const options = {
|
|
422
422
|
background: 'hsl(125, 42%, 35%)',
|
|
423
423
|
mouse: {
|
|
424
|
-
interactionType: CanvasParticles.interactionType.MOVE, // === 2
|
|
424
|
+
interactionType: CanvasParticles.interactionType.MOVE, // MOVE === 2
|
|
425
425
|
},
|
|
426
426
|
particles: {
|
|
427
427
|
color: 'rgba(150, 255, 105, 0.95)',
|
package/canvasParticles.js
CHANGED
package/canvasParticles.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "canvasparticles-js",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "In an HTML canvas, a bunch of interactive particles connected with lines when they approach each other.",
|
|
5
5
|
"main": "canvasParticles.js",
|
|
6
6
|
"module": "canvasParticles.mjs",
|