seestars
v0.0.1
Published
See Stars • a lightweight set of utilities to take an sRGB or displayP3 color, and extract the CIE Y relative luminance, and then convert to CIE L* (perceptual lightness). Takes RGB colors as simple arrays (as created with colorParsley). Bonus utilities t
Downloads
23
Maintainers
Readme
💫 See Stars ✨
A Myndex MicroColor Library. This has standard functions for the standard (piecewise) IEC conversion of sRGB to Y, and the CIE standard Y to L* (Lstar) and back again. The math & constants here reference those of CSS 4 for compatibility.
Use this with Color Parsley and Delta Phi Star
This repo is a luminance-only micro-version of SeeLAB
QuickStart
NPM Install: npm i seestars
Usage:
Lstar = seeStars('#abcdef');