randomcolor
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "randomcolor", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "For generating attractive random colors", | ||
@@ -5,0 +5,0 @@ "main": "randomColor.js", |
@@ -6,8 +6,4 @@ // randomColor by David Merfield under the CC0 license | ||
// Support AMD | ||
if (typeof define === 'function' && define.amd) { | ||
define([], factory); | ||
// Support CommonJS | ||
} else if (typeof exports === 'object') { | ||
if (typeof exports === 'object') { | ||
var randomColor = factory(); | ||
@@ -23,2 +19,6 @@ | ||
// Support AMD | ||
} else if (typeof define === 'function' && define.amd) { | ||
define([], factory); | ||
// Support vanilla script loading | ||
@@ -115,2 +115,6 @@ } else { | ||
if (options.hue === 'monochrome') { | ||
return 0; | ||
} | ||
if (options.luminosity === 'random') { | ||
@@ -120,6 +124,2 @@ return randomWithin([0,100]); | ||
if (options.hue === 'monochrome') { | ||
return 0; | ||
} | ||
var saturationRange = getSaturationRange(hue); | ||
@@ -126,0 +126,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
64584