color-forge
Advanced tools
Comparing version 1.0.10 to 1.0.11
14
index.js
@@ -185,11 +185,17 @@ 'use strict'; | ||
amount = amountMode; | ||
mode = 'rgb'; | ||
} else { | ||
amount = 0.5; | ||
} else if (typeof amountMode === 'string') { | ||
mode = amountMode; | ||
} | ||
} if (amountMode === undefined) { | ||
} else { | ||
amount = amountMode; | ||
} | ||
if (amount === undefined) { | ||
amount = 0.5; | ||
} | ||
if (mode === undefined) { | ||
mode = 'rgb'; | ||
} | ||
var thisValues = this.convert(mode).values; | ||
@@ -196,0 +202,0 @@ var otherValues = other.convert(mode).values; |
{ | ||
"name": "color-forge", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "A simple color system based on the work of https://github.com/dfcreative/color-space", | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/jacobp100/color-forge", |
@@ -85,2 +85,3 @@ /* eslint-env node, mocha */ | ||
assert.about(Color.hex('#f00').mix(Color.hex('#0f0'), 'lab').convert('rgb'), Color.hex('#c9ab00')); | ||
assert.about(Color.hex('#f00').mix(Color.hex('#0f0'), 'lchab').convert('rgb'), Color.hex('#d7a700')); | ||
}); | ||
@@ -87,0 +88,0 @@ // Conformance with http://sassmeister.com (where 25 on there is 0.25 here) |
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
54830
961