Skip to content

Commit 77b0c6e

Browse files
committed
Corrections for Adobe RGB and Display P3
1 parent ceec496 commit 77b0c6e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/color.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::*;
44
const CIE_D65: [f32; 3] = [0.9505, 1.0, 1.0888];
55

66
/// CIE XYZ coordinates of the D50 horizon light white.
7-
const CIE_D50: [f32; 3] = [0.9642, 1.0, 0.8251];
7+
const CIE_D50: [f32; 3] = [0.9642, 1.0, 0.82489];
88

99
/// CIE XYZ coordinates of the E equal radiator white.
1010
const CIE_E: [f32; 3] = [1.000, 1.000, 1.000];
@@ -250,7 +250,7 @@ impl ColorSpace<'_> {
250250
self.cal_rgb(
251251
CIE_D65,
252252
None,
253-
Some([2.2, 2.2, 2.2]),
253+
Some([2.1992188, 2.1992188, 2.1992188]),
254254
Some([
255255
0.57667, 0.29734, 0.02703, 0.18556, 0.62736, 0.07069, 0.18823, 0.07529,
256256
0.99134,
@@ -265,7 +265,7 @@ impl ColorSpace<'_> {
265265
self.cal_rgb(
266266
CIE_D65,
267267
None,
268-
Some([2.2, 2.2, 2.2]),
268+
Some([2.6, 2.6, 2.6]),
269269
Some([
270270
0.48657, 0.2297, 0.0, 0.26567, 0.69174, 0.04511, 0.19822, 0.07929,
271271
1.04394,

0 commit comments

Comments
 (0)