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

2.1.0 • Public • Published

@fantasy-color/lab-to-hcl

Transform a LAB color object to a HCL color object.

type labToHcl = (color: LAB) => HCL

Example usage:

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

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

10

Version

2.1.0

License

MIT

Unpacked Size

5.41 kB

Total Files

9

Last publish

Collaborators

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