Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryScript committed Mar 5, 2021
1 parent 8569abb commit 83dde35
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Spark Particles
![version](https://img.shields.io/npm/v/spark-particles)
![license](https://img.shields.io/npm/l/spark-particles)
![language](https://img.shields.io/github/languages/top/gelltorn/particles)
![issues](https://img.shields.io/github/issues/gelltorn/particles)
![npm downloads](https://img.shields.io/npm/dt/spark-particles)
![version](https://img.shields.io/npm/v/spark-particles?style=for-the-badge)
![license](https://img.shields.io/npm/l/spark-particles?style=for-the-badge)
![language](https://img.shields.io/github/languages/top/gelltorn/particles?style=for-the-badge)
![issues](https://img.shields.io/github/issues/gelltorn/particles?style=for-the-badge)
![npm downloads](https://img.shields.io/npm/dt/spark-particles?style=for-the-badge)
![npm min bundle size](https://img.shields.io/bundlephobia/min/spark-particles?style=for-the-badge)
![npm minzip bundle size](https://img.shields.io/bundlephobia/minzip/spark-particles?style=for-the-badge)

Lightweight and fast Particle library written in JavaScript

Zero Dependencies!

[Examples](https://gelltorn.github.io/particles/examples/)

## Installation
1. `npm i spark-particles`
1. `npm i spark-particles --save`
2. Done!
## Usage
See Basic example
Expand All @@ -31,12 +35,6 @@ const particles = new Particles(node, {
maxVelocity: 0.8, // number
maxRadius: 4 // number
},
staticParticles: [
[0.4, 0.4],
[0.6, 0.4],
[0.4, 0.6],
[0.6, 0.6],
],
renderer: {
transparentBackground: false, // boolean
backgroundColor: "#186cb6", // color
Expand Down
1 change: 1 addition & 0 deletions examples/basic/Particles.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions examples/basic/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Particles from "../../src/Particles.js"
import Particles from "./Particles.js"

const node = document.getElementById("particles")

Expand All @@ -14,7 +14,6 @@ const particles = new Particles(node, {
maxVelocity: 0.8, // number
maxRadius: 4 // number
},
staticParticles: [],
renderer: {
transparentBackground: false, // boolean
backgroundColor: "#186cb6", // color
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spark-particles",
"version": "0.2.0",
"version": "0.2.1",
"description": "Lightweight and fast Particle library written in JavaScript",
"main": "./Particles.js",
"scripts": {
Expand Down

0 comments on commit 83dde35

Please sign in to comment.