File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ This release has an [MSRV][] of 1.82.
19
19
20
20
* Support for the ACES2065-1 color space. ([ #124 ] [ ] by [ @tomcur ] [ ] )
21
21
22
+ ### Fixed
23
+
24
+ * Specify some ` ColorSpace::WHITE_COMPONENTS ` to higher precision. ([ #128 ] [ ] , [ #129 ] [ ] by [ @tomcur ] [ ] )
25
+
22
26
## [ 0.2.2] [ ] (2025-01-03)
23
27
24
28
This release has an [ MSRV] [ ] of 1.82.
@@ -111,6 +115,8 @@ This is the initial release.
111
115
[ #118 ] : https://github.com/linebender/color/pull/118
112
116
[ #119 ] : https://github.com/linebender/color/pull/119
113
117
[ #124 ] : https://github.com/linebender/color/pull/124
118
+ [ #128 ] : https://github.com/linebender/color/pull/128
119
+ [ #129 ] : https://github.com/linebender/color/pull/129
114
120
115
121
[ Unreleased ] : https://github.com/linebender/color/compare/v0.2.2...HEAD
116
122
[ 0.2.2 ] : https://github.com/linebender/color/releases/tag/v0.2.2
Original file line number Diff line number Diff line change @@ -679,7 +679,7 @@ impl ColorSpace for XyzD50 {
679
679
680
680
const TAG : Option < ColorSpaceTag > = Some ( ColorSpaceTag :: XyzD50 ) ;
681
681
682
- const WHITE_COMPONENTS : [ f32 ; 3 ] = [ 0.9642956 , 1. , 0.8251046 ] ;
682
+ const WHITE_COMPONENTS : [ f32 ; 3 ] = [ 3457. / 3585. , 1. , 986. / 1195. ] ;
683
683
684
684
fn to_linear_srgb ( src : [ f32 ; 3 ] ) -> [ f32 ; 3 ] {
685
685
// XYZ_to_lin_sRGB * D50_to_D65
@@ -764,7 +764,7 @@ impl ColorSpace for XyzD65 {
764
764
765
765
const TAG : Option < ColorSpaceTag > = Some ( ColorSpaceTag :: XyzD65 ) ;
766
766
767
- const WHITE_COMPONENTS : [ f32 ; 3 ] = [ 0.9504559 , 1. , 1.0890577 ] ;
767
+ const WHITE_COMPONENTS : [ f32 ; 3 ] = [ 3127. / 3290. , 1. , 3583. / 3290. ] ;
768
768
769
769
fn to_linear_srgb ( src : [ f32 ; 3 ] ) -> [ f32 ; 3 ] {
770
770
const XYZ_TO_LINEAR_SRGB : [ [ f32 ; 3 ] ; 3 ] = [
You can’t perform that action at this time.
0 commit comments