Skip to content

Commit 55e497b

Browse files
committed
[css-color-4] specify whites as ASTM 308 XYZ values
1 parent 9586314 commit 55e497b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

css-color-4/matrixmaker.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@
6565
// const yblue=0.060 ;
6666

6767

68-
// D65
69-
const xwhite=0.3127 ;
70-
const ywhite=0.3290 ;
68+
// D65 from ASTM E308-01
69+
const XWhite = 0.95047;
70+
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;
7177

72-
// D50
73-
// const xwhite=0.3457 ;
74-
// const ywhite=0.3585 ;
7578

7679

7780
// Relative XYZ values. Copy-paste-o-rama
7881
// method from http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
79-
var XWhite=xwhite/ywhite;
80-
var YWhite=1;
81-
var ZWhite=(1 - xwhite - ywhite)/ywhite;
8282

8383
var XRed=xred/yred;
8484
var YRed=1;

0 commit comments

Comments
 (0)