🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@fantasy-color/hcl-to-lab

Package Overview
Dependencies
Maintainers
9
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fantasy-color/hcl-to-lab

Transform HCL objects to LAB objects

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
6
-81.25%
Maintainers
9
Weekly downloads
 
Created
Source

@fantasy-color/hcl-to-lab

Transform a HCL color object to a LAB color object.

type hclToLab = (color: HCL) => LAB

Example usage:

import hclToLab from '@fantasy-color/hcl-to-lab'

hclToLab({
  hue: 40.85261277607024,
  chroma: 106.83899941284552,
  luminance: 54.29173376861782
})
// { luminance: 54.29173376861782, a: 80.8124553179771, b: 69.88504032350531 }

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts