The latest published Color release is 0.2.3 which was released on 2025-01-20. You can find its changes documented below.
This release has an MSRV of 1.82.
-
Support converting between color spaces without chromatic adaptation, thereby representing the same absolute color in the destination color space as in the source color space. (#139 by @tomcur)
Note to
ColorSpace
implementers: theWHITE_POINT
associated constant is added toColorSpace
, defaulting to D65. Implementations with a non-D65 white point should set this constant to get correct default absolute conversion behavior. -
Support manual chromatic adaptation of colors between arbitrary white point chromaticities. (#139 by @tomcur)
0.2.3 (2025-01-20)
This release has an MSRV of 1.82.
- Support for the ACES2065-1 color space. (#124 by @tomcur)
- A documentation example implementing
ColorSpace
. (#130 by @tomcur) - Conversions of
[u8; 4]
and packedu32
intoRgba8
andPremulRgba8
are now provided. (#135 by @tomcur) - Support construction of
AlphaColor<Srgb>
,OpaqueColor<Srgb>
andPremulColor<Srgb>
from rgb8 values. (#136 by @waywardmonkeys)
0.2.2 (2025-01-03)
This release has an MSRV of 1.82.
- Colors in
XyzD65
are serialized asxyz-d65
rather thanxyz
. (#118 by @waywardmonkeys) - Alpha values are clamped at parse time. (#119 by @waywardmonkeys)
0.2.1 (2024-12-27)
This release has an MSRV of 1.82.
- Add
FromStr
impl forAlphaColor
,DynamicColor
,OpaqueColor
,PremulColor
. (#111 by @waywardmonkeys)
- 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)
- Make color parsing case insensitive. (#109 by @raphlinus)
0.2.0 (2024-12-17)
This release has an MSRV of 1.82.
- 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)
- The
mul_alpha
method was renamed tomultiply_alpha
. (#65 by @waywardmonkeys)
- Stray parenthesis in hex serialization of
Rgba8
fixed. (#78 by @raphlinus)
0.1.0 (2024-11-20)
This release has an MSRV of 1.82.
This is the initial release.