Releases: mazznoer/csscolorparser-rs
Releases · mazznoer/csscolorparser-rs
v0.7.0
Added
Color::from_oklcha()
- Support parsing
oklab()
andoklch()
color format. Color::{from,to}_{laba,lcha}()
Changed
f64
->f32
- Return type for
Color::to_{hsva,hsla,hwba,lab,lch,oklaba,linear_rgba}()
changed from tuple to array. - Deprecate
Color::{from,to}_{lab,lch}()
, useColor::{from,to}_{laba,lcha}()
instead. NAMED_COLORS
is now public
v0.6.2
v0.6.1
- New
Color
's methods:new
,to_array
,to_rgba8
,to_rgba16
,clamp
,from_rgba8
,from_linear_rgba8
,name
. - Deprecate some
Color
's methods. - Remove deprecated
Color
's methods:from_lrgb
,from_lrgba
,from_lrgb_u8
,from_lrgba_u8
,red
,green
,blue
,alpha
,to_lrgba
,to_lrgba_u8
,interpolate_lrgb
. - More strict parser.
rgb(255,100%,50%)
is now invalid. - Update dependencies.
- And some improvements.
v0.6.0
v0.5.0
Color
:r
,g
,b
,a
fields are now public.Color
: Deprecatered()
,green()
,blue()
andalpha()
.Color
: Rename some method functions to more descriptive names:from_lrgba()
->from_linear_rgba()
interpolate_lrgb()
->interpolate_linear_rgb()
- and some others.
phf
are now optional dependency.- Rename
ParseError
->ParseColorError
. - Add support for
serde
,cint
,rgb
.