canvas-starfield
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -29,4 +29,4 @@ /* | ||
if (typeof module !== 'undefined') module.exports = sf | ||
else window.Starfield = sf | ||
if (typeof module !== 'undefined') module.exports = sf() | ||
else window.Starfield = sf() | ||
@@ -61,3 +61,3 @@ })(this, function() { | ||
for (var i = 0, l = config.numStars || 500; i < l; i++) this.stars.push({ | ||
x: Math.round(Math.random() * this.canvas.width), | ||
x: Math.round(Math.random() * this.canvas.width), | ||
y: Math.round(Math.random() * this.canvas.height), | ||
@@ -64,0 +64,0 @@ r: 0.5 + (Math.random() * (config.maxRadius || 500)), |
{ | ||
"name": "canvas-starfield", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A canvas rendered starfield that twinkles and moves.", | ||
@@ -5,0 +5,0 @@ "main": "canvas-starfield.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5736