Releases: linebender/color
Releases · linebender/color
v0.2.2
This release has an MSRV of 1.82.
Fixed
- Colors in
XyzD65
are serialized asxyz-d65
rather thanxyz
. (#118 by @waywardmonkeys) - Alpha values are clamped at parse time. (#119 by @waywardmonkeys)
Full Changelog: v0.2.1...v0.2.2
v0.2.1
This release has an MSRV of 1.82.
Added
- Add
FromStr
impl forAlphaColor
,DynamicColor
,OpaqueColor
,PremulColor
. (#111 by @waywardmonkeys)
Changed
- Don't enable
serde
'sstd
feature when enabling ourstd
feature. (#108 by @waywardmonkeys) From<Rgba8>
forPremulColor
is deprecated and replaced byFrom<PremulRgba8>
. (#113 by @waywardmonkeys)
Fixed
- Make color parsing case insensitive. (#109 by @raphlinus)
Full Changelog: v0.2.0...v0.2.1
v0.2.0
This release has an MSRV of 1.82.
Added
- Add
BLACK
,WHITE
, andTRANSPARENT
constants to the color types. (#64 by @waywardmonkeys) - The
serde
feature enables usingserde
withAlphaColor
,DynamicColor
,HueDirection
,OpaqueColor
,PremulColor
, andRgba8
. (#61, #70, #80 by @waywardmonkeys) - Conversion of a
Rgba8
to au32
is now provided. (#66, #77 by @waywardmonkeys, #100 by @tomcur) - A new
PremulRgba8
type mirrorsRgba8
, but forPremulColor
. (#66 by @waywardmonkeys) AlphaColor::with_alpha
allows setting the alpha channel. (#67 by @waywardmonkeys)- Support for the
ACEScg
color space. (#54 by @MightyBurger) DynamicColor
getswith_alpha
andmultiply_alpha
. (#71 by @waywardmonkeys)DynamicColor
now implsPartialEq
. (#75 by @waywardmonkeys)AlphaColor
,OpaqueColor
, andPremulColor
now implPartialEq
. (#76, #86 by @waywardmonkeys)HueDirection
now implsPartialEq
. (#79 by @waywardmonkeys)ColorSpaceTag
andHueDirection
now have bytemuck support. (#81 by @waywardmonkeys)- A
DynamicColor
parsed from a named color or named color space function now serializes back to that name, as per the CSS Color Level 4 spec (#39 by @tomcur). CacheKey
to allow using colors as keys for resource caching. (#92 by @DJMcNab)
Changed
- The
mul_alpha
method was renamed tomultiply_alpha
. (#65 by @waywardmonkeys)
Fixed
- Stray parenthesis in hex serialization of
Rgba8
fixed. (#78 by @raphlinus)
New Contributors
- @MightyBurger made their first contribution in #54
- @nicoburns made their first contribution in #97
Full Changelog: v0.1.0...v0.2.0
Color 0.1.0
We are proud to announce that we have released v0.1.0 of Color!
The Color library provides functionality for representing, converting, parsing, serializing, and manipulating colors in a variety of color spaces. It closely follows the CSS Color Level 4 draft spec.