Changelog
[2.0.0] - #7 - 2020-05-23
alpha
property to hold a value within 0
and 1
#000
for when undefined
, null
or <empty>
is passed to the constructorlighthouse-ci
action for gh-pages
throw
error if input is not a CSS string recognized by parse-css-color
rgb
property now returns an array in the form of [r, g, b]
instead of { r: number, g: number, b: number }
hex
is now a getter (access backward-compatible)
1
it returns 8 digits now #RRGGBBAA
otherwise 6 #RRGGBB
hexString
method return value could include alpha
1
it returns 8 digits now #RRGGBBAA
otherwise 6 #RRGGBB
isTint
, isShade
and isBaseColor
properties replaced by new type
field
type="tint"
type="shade"
type="base"
percentage
property is now weight
and, it is included on every instance instead of just for tints and shadessetColor
return null if color is not acceptedhsl
isTint
, isShade
, isBaseColor
hslString
isHex
, isRGB
and isHSL
logic moved to parse-css-colormix
(moved to mix-css-color)Changelog
[1.1.0] - #5 - 2020-03-10
vallues.all()
5f204a2
isTint: true
for tintsisShade: true
for shadesisBaseColor: true
for the original input colorf226453
hexString
, rgbString
and hslString
missing methods