is_light: Check whether the color is light

Description Usage Arguments Value Examples

Description

Functions to check whether a color's perceived brightness is light.

Usage

1

Arguments

x

a any type color string or a javascript color object specifying.

Value

Return a boolean indicating whether the color's perceived brightness is light.

Examples

1
2
3
is_light("#FFF")
is_light("#F1C")
is_light("not a color")

houyunhuang/tinycolor documentation built on June 6, 2019, 7:43 p.m.