Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
color luminosity tools
JavaScript
Branch: master
Failed to load latest commit information.
src initial commit
.gitignore initial commit
.jshintrc initial commit
.tern-project initial commit
component.json initial commit
license initial commit
readme.md add documentation

readme.md

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

Something went wrong with that request. Please try again.