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

colorutil

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorutil - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

index.js

@@ -59,3 +59,3 @@ /*

const f = (i&1) ? 1+i - h*6 : h*6 - i; // if i is odd
const n = w + f * (v - w);
const n = w + f * (v - w); // linear interpolation

@@ -62,0 +62,0 @@ switch (i){

{
"name": "colorutil",
"version": "3.0.0",
"version": "3.0.1",
"description": "RGB, HSL, HSV, HWB color models convertor",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,1 +1,6 @@

## Deprecated
use color-convert
### Usage

@@ -21,24 +26,1 @@

| natural input/output | normalized [0,1] io |
| :---: | :---: |
| rgbToHsl | rgb2hsl |
| rgbToHsv | rgb2hsv |
| rgbToHwb | rgb2hwb |
| rgbToHex | rgb2hex |
| hslToRgb | hsl2rgb |
| hslToHsv | hsl2hsv |
| hslToHwb | hsl2hwb |
| hslToHex | hsl2hex |
| hsvToRgb | hsv2rgb |
| hsvToHsl | hsv2hsl |
| hsvToHwb | hsv2hwb |
| hsvToHex | hsv2hex |
| hwbToRgb | hwb2rgb |
| hwbToHsl | hwb2hsl |
| hwbToHsv | hwb2hsv |
| hwbToHex | hwb2hex |
| hexToRgb | hex2rgb |
| hexToHsl | hex2hsl |
| hexToHsv | hex2hsv |
| hexToHwb | hex2hwb |
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