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

2.1.0 • Public • Published

@fantasy-color/rgb-to-lab

Transform a RGB color object to a LAB color object.

type rgbToLab = (color: RGB) => LAB

Example usage:

import rgbToLab from '@fantasy-color/rgb-to-lab'

rgbToLab({
  red: 60,
  green: 32,
  blue: 23
})
// { luminance: 15.966897718378611, a: 13.086860007892998, b: 12.202929512042749 }

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

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

    Weekly Downloads

    9

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    10.4 kB

    Total Files

    9

    Last publish

    Collaborators

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