Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

seestars

Myndex23AGPL v30.0.1

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

CSS, CSS3, CSS4, CSS5, HTML, PDF, RTF, sRGB, RGB, P3, displayP3, Adobe RGB, LCh, Lstar, color, colour, colors, colours, contrast, lightness, brightness, luminance, design tools, string parsing, HSL, HSV, HWB, RGB parsing, hex string, regex

readme

version    plain vanilla JS    license   

last commit    downloads    twitter   

💫 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');
`

seestars logo