We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9586314 commit 55e497bCopy full SHA for 55e497b
css-color-4/matrixmaker.html
@@ -65,20 +65,20 @@
65
// const yblue=0.060 ;
66
67
68
- // D65
69
- const xwhite=0.3127 ;
70
- const ywhite=0.3290 ;
+ // D65 from ASTM E308-01
+ const XWhite = 0.95047;
+ const YWhite = 1.00000;
71
+ const ZWhite = 1.08883;
72
+
73
+ // D50 from ASTM E308-01
74
+ // const XWhite = 0.96422;
75
+ // const YWhite = 1.00000;
76
+ // const ZWhite = 0.82521;
77
- // D50
- // const xwhite=0.3457 ;
- // const ywhite=0.3585 ;
78
79
80
// Relative XYZ values. Copy-paste-o-rama
81
// method from http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
- var XWhite=xwhite/ywhite;
- var YWhite=1;
- var ZWhite=(1 - xwhite - ywhite)/ywhite;
82
83
var XRed=xred/yred;
84
var YRed=1;
0 commit comments