Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

color-space

Package Overview
Dependencies
Maintainers
6
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-space - npm Package Compare versions

Comparing version 1.14.3 to 1.14.4

hcy.js

4

hcg.js

@@ -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 @@ };

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc