@fantasy-color/hcl-to-lab
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @fantasy-color/hcl-to-lab

Weekly Downloads

7

Version

2.1.0

License

MIT

Unpacked Size

5.21 kB

Total Files

9

Last publish

Collaborators

  • ijigg
  • moria.am
  • atilaz
  • gideon.gur
  • irminakacz
  • fernando.3
  • xaviervia
  • psxcode
  • deepsweet