color-space
Advanced tools
Comparing version 1.14.3 to 1.14.4
@@ -17,3 +17,3 @@ /** | ||
channel: ['hue', 'chroma', 'gray'], | ||
alias: ['HCG', 'HST'], | ||
alias: ['HCG', 'HSG'], | ||
@@ -171,2 +171,2 @@ rgb: function(hcg) { | ||
return [hwb[0], c * 100, g * 100]; | ||
} | ||
} |
@@ -42,2 +42,4 @@ /** | ||
hcg: require('./hcg'), | ||
tsl: require('./tsl'), | ||
yes: require('./yes'), | ||
osaucs: require('./osaucs') | ||
@@ -44,0 +46,0 @@ }; |
38
lms.js
@@ -22,3 +22,3 @@ /** | ||
/* | ||
//transform matrices | ||
@@ -50,22 +50,22 @@ matrix: { | ||
0.0030, 0.0136, 0.9834] | ||
}, | ||
*/ | ||
} | ||
}; | ||
xyz: function(arg, matrix){ | ||
var l = arg[0], m = arg[1], s = arg[2]; | ||
if (!matrix) { | ||
matrix = [ | ||
1.096123820835514, -0.278869000218287, +0.182745179382773, | ||
0.454369041975359, + 0.473533154307412, +0.072097803717229, | ||
-0.009627608738429, -0.005698031216113, +1.015325639954543 | ||
]; | ||
} | ||
lms.xyz = function(arg, matrix){ | ||
var l = arg[0], m = arg[1], s = arg[2]; | ||
return [ | ||
l * matrix[0] + m * matrix[1] + s * matrix[2], | ||
l * matrix[3] + m * matrix[4] + s * matrix[5], | ||
l * matrix[6] + m * matrix[7] + s * matrix[8] | ||
if (!matrix) { | ||
matrix = [ | ||
1.096123820835514, -0.278869000218287, +0.182745179382773, | ||
0.454369041975359, + 0.473533154307412, +0.072097803717229, | ||
-0.009627608738429, -0.005698031216113, +1.015325639954543 | ||
]; | ||
} | ||
return [ | ||
l * matrix[0] + m * matrix[1] + s * matrix[2], | ||
l * matrix[3] + m * matrix[4] + s * matrix[5], | ||
l * matrix[6] + m * matrix[7] + s * matrix[8] | ||
]; | ||
}; | ||
@@ -77,7 +77,3 @@ | ||
if (!matrix) { | ||
matrix = [ | ||
0.7328, 0.4296,-0.1624, | ||
-0.7036, 1.6975, 0.0061, | ||
0.0030, 0.0136, 0.9834 | ||
]; | ||
matrix = lms.matrix.CAT02 | ||
} | ||
@@ -84,0 +80,0 @@ |
{ | ||
"name": "color-space", | ||
"description": "Color space conversions and data", | ||
"version": "1.14.3", | ||
"version": "1.14.4", | ||
"author": "Deema Yvanow <dfcreative@gmail.com>", | ||
@@ -40,3 +40,2 @@ "keywords": [ | ||
"dependencies": { | ||
"gzip-size": "^3.0.0", | ||
"husl": ">=5.0", | ||
@@ -46,7 +45,7 @@ "mumath": "^2.0.0" | ||
"devDependencies": { | ||
"queried": "^1.4.1", | ||
"browserify": "^6.x", | ||
"almost-equal": "^1.1.0", | ||
"closurecompiler": "^1.x", | ||
"gzip-size": "^3.0.0", | ||
"mocha": "latest", | ||
"watchify": "^3.4.0" | ||
"queried": "^1.4.1" | ||
}, | ||
@@ -53,0 +52,0 @@ "scripts": { |
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
67273
2
41
2284
119
- Removedgzip-size@^3.0.0
- Removedduplexer@0.1.2(transitive)
- Removedgzip-size@3.0.0(transitive)