randomcolor
Advanced tools
Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "randomcolor", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "A tiny script for generating attractive random colors", | ||
@@ -5,0 +5,0 @@ "main": "randomColor.js", |
@@ -78,8 +78,9 @@ // randomColor by David Merfield under the CC0 license | ||
// Since we're generating multiple colors, | ||
// incremement the seed. Otherwise we'd just | ||
// generate the same color each time... | ||
if (seed && options.seed) options.seed += 1; | ||
var color = randomColor(options); | ||
colors.push(randomColor(options)); | ||
if (seed !== null) { | ||
options.seed = seed; | ||
} | ||
colors.push(color); | ||
} | ||
@@ -86,0 +87,0 @@ |
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
25337