Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit c9dcf49

Browse files
author
Marc Brüderlin
committed
Merge branch 'develop'
2 parents d0afdcf + 7a685f4 commit c9dcf49

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2016 Marc Brüderlin
1+
Copyright © 2017 Marc Brüderlin
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the “Software”), to deal
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1616
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1818
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
19+
THE SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ particles.js is a lightweight, dependency-free and responsive javascript plugin
1010
There are several ways to install particles.js:
1111
- [Download the latest version](https://github.com/marcbruederlin/particles.js/archive/master.zip)
1212
- Install with npm: `npm install particlesjs --save`
13-
- Use the CDN: `https://npmcdn.com/particlesjs@2.0.1/dist/particles.min.js`
13+
- Use the CDN: `https://npmcdn.com/particlesjs@2.0.2/dist/particles.min.js`
1414

1515
## Usage
1616
Include the minified JS in your HTML (right before the closing body tag).

dist/particles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* A lightweight, dependency-free and responsive javascript plugin for particle backgrounds.
33
*
44
* @author Marc Bruederlin <hello@marcbruederlin.com>
5-
* @version 2.0.1
5+
* @version 2.0.2
66
* @license MIT
77
* @see https://github.com/marcbruederlin/particles.js
88
*/
@@ -28,7 +28,7 @@ var Particles = (function(window, document) {
2828
maxParticles: 100,
2929
sizeVariations: 3,
3030
speed: 0.5,
31-
color: _._hex2rgb('#000000'),
31+
color: '#000000',
3232
minDistance: 120,
3333
connectParticles: false
3434
};
@@ -55,8 +55,8 @@ var Particles = (function(window, document) {
5555
Plugin.prototype.init = function(settings) {
5656
var _ = this;
5757

58-
settings.color = _._hex2rgb(settings.color);
5958
_.options = _._extend(_.defaults, settings);
59+
_.options.color = ((settings.color) ? _._hex2rgb(settings.color) : _._hex2rgb(_.defaults.color));
6060
_.originalSettings = JSON.parse(JSON.stringify(_.options));
6161

6262
_._initializeCanvas();

dist/particles.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "particlesjs",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "A lightweight, dependency-free and responsive javascript plugin for particle backgrounds.",
55
"main": "dist/particles.min.js",
66
"repository": {

src/particles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* A lightweight, dependency-free and responsive javascript plugin for particle backgrounds.
33
*
44
* @author Marc Bruederlin <hello@marcbruederlin.com>
5-
* @version 2.0.1
5+
* @version 2.0.2
66
* @license MIT
77
* @see https://github.com/marcbruederlin/particles.js
88
*/
@@ -28,7 +28,7 @@ var Particles = (function(window, document) {
2828
maxParticles: 100,
2929
sizeVariations: 3,
3030
speed: 0.5,
31-
color: _._hex2rgb('#000000'),
31+
color: '#000000',
3232
minDistance: 120,
3333
connectParticles: false
3434
};
@@ -55,8 +55,8 @@ var Particles = (function(window, document) {
5555
Plugin.prototype.init = function(settings) {
5656
var _ = this;
5757

58-
settings.color = _._hex2rgb(settings.color);
5958
_.options = _._extend(_.defaults, settings);
59+
_.options.color = ((settings.color) ? _._hex2rgb(settings.color) : _._hex2rgb(_.defaults.color));
6060
_.originalSettings = JSON.parse(JSON.stringify(_.options));
6161

6262
_._initializeCanvas();

0 commit comments

Comments
 (0)