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

husl

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husl - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

24

husl.js
// Generated by CoffeeScript 1.9.3
(function() {
var L_to_Y, Y_to_L, conv, distanceFromPole, dotProduct, epsilon, fromLinear, getBounds, intersectLineLine, kappa, lengthOfRayUntilIntersect, m, m_inv, maxChromaForLH, maxSafeChromaForL, refU, refV, refX, refY, refZ, root, toLinear;
var L_to_Y, Y_to_L, conv, distanceFromPole, dotProduct, epsilon, fromLinear, getBounds, intersectLineLine, kappa, lengthOfRayUntilIntersect, m, m_inv, maxChromaForLH, maxSafeChromaForL, refU, refV, root, toLinear;

@@ -17,8 +17,2 @@ m = {

refX = 0.95045592705167173;
refY = 1.0;
refZ = 1.0890577507598784;
refU = 0.19783000664283681;

@@ -155,5 +149,5 @@

if (Y <= epsilon) {
return (Y / refY) * kappa;
return Y * kappa;
} else {
return 116 * Math.pow(Y / refY, 1 / 3) - 16;
return 116 * Math.pow(Y, 1 / 3) - 16;
}

@@ -164,5 +158,5 @@ };

if (L <= 8) {
return refY * L / kappa;
return L / kappa;
} else {
return refY * Math.pow((L + 16) / 116, 3);
return Math.pow((L + 16) / 116, 3);
}

@@ -174,8 +168,8 @@ };

X = tuple[0], Y = tuple[1], Z = tuple[2];
if (Y === 0) {
return [0, 0, 0];
}
L = Y_to_L(Y);
varU = (4 * X) / (X + (15 * Y) + (3 * Z));
varV = (9 * Y) / (X + (15 * Y) + (3 * Z));
L = Y_to_L(Y);
if (L === 0) {
return [0, 0, 0];
}
U = 13 * L * (varU - refU);

@@ -182,0 +176,0 @@ V = 13 * L * (varV - refV);

@@ -5,3 +5,3 @@ {

"keywords": ["color", "color space", "CIE", "RGB", "HUSL", "HSL"],
"version": "6.0.0",
"version": "6.0.1",
"author": "Alexei Boronine <alexei@boronine.com>",

@@ -8,0 +8,0 @@ "license": "MIT",

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