Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/ luminosity Public archive

color luminosity tools

License

Notifications You must be signed in to change notification settings

sergioramos/luminosity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deprecated

luminosity

luminosity functions from harthur/color

install

component install ramitos/luminosity

api

The WCAG luminosity of the color. 0 is black, 1 is white.

.luminosity(array: rbg)

The WCAG contrast ratio to another color, from 1 (same color) to 21 (contrast b/w white and black).

.contrast(array: rgb1, array: rgb2)

Get whether the color is "dark"/"light"

.dark(array: rgb) / .light(array: rgb)

license

MIT

About

color luminosity tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published