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 3.0.0 to 4.0.0

18

husl.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -11,6 +11,2 @@ var L_to_Y, Y_to_L, conv, dotProduct, epsilon, fromLinear, kappa, m, m_inv, maxChroma, maxChromaD, refU, refV, refX, refY, refZ, rgbPrepare, root, round, stylus, toLinear, _hradExtremum, _maxChroma;

refU = 0.19784;
refV = 0.46834;
refU = (4 * refX) / (refX + (15 * refY) + (3 * refZ));

@@ -42,3 +38,3 @@

sub1 = Math.pow(L + 16, 3) / 1560896;
sub2 = sub1 > 216 / 24389 ? sub1 : 27 * L / 24389;
sub2 = sub1 > epsilon ? sub1 : L / kappa;
return function(channel) {

@@ -60,4 +56,4 @@ var bottom, lbottom, m1, m2, m3, rbottom, top, _ref;

lhs = (Math.pow(L, 3) + 48 * Math.pow(L, 2) + 768 * L + 4096) / 1560896;
rhs = 216 / 24389;
sub = lhs > rhs ? lhs : 10 * L / 9033;
rhs = epsilon;
sub = lhs > rhs ? lhs : L / kappa;
return function(channel, limit) {

@@ -69,3 +65,3 @@ var bottom, hrad, m1, m2, m3, top, _ref;

hrad = Math.atan2(top, bottom);
if (limit === 0) {
if (limit === 1) {
hrad += Math.PI;

@@ -442,2 +438,6 @@ }

root._maxChromaD = maxChromaD;
root._hradExtremum = _hradExtremum;
root._rgbPrepare = rgbPrepare;

@@ -444,0 +444,0 @@

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

"keywords": ["color", "color space", "CIE", "RGB", "stylus", "HUSL", "HSL"],
"version": "3.0.0",
"version": "4.0.0",
"author": "Alexei Boronine <alexei.boronine@gmail.com>",

@@ -14,5 +14,6 @@ "main": "husl.js",

},
"homepage": "http://boronine.github.com/husl/",
"homepage": "http://www.boronine.com/husl/",
"devDependencies": {
"coffee-script": "*",
"underscore": "*",
"uglify-js": "*",

@@ -23,4 +24,4 @@ "mocha": "*",

"scripts": {
"test": "mocha --compilers coffee:coffee-script"
"test": "mocha --compilers coffee:coffee-script/register"
}
}

@@ -15,3 +15,3 @@ [![Build Status](https://secure.travis-ci.org/boronine/husl.png)](http://travis-ci.org/boronine/husl)

# Testing
# Testing and Building Documentation

@@ -32,2 +32,4 @@ Run `npm install` and `npm test`. Try `cake snapshot` to generate a JSON file of the entire gamut to be used for debugging and regression tests. The format of the file is as follows:

Building documentation requires some libraries to be installed. If you are running [Docker](https://www.docker.io/), a wise way to do it would be to run `cake docker:build` followed by `cake docker:run`. You will find yourself inside a Docker container with everything set up to run `cake build:docs`.
# Ports

@@ -34,0 +36,0 @@

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