File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3121,7 +3121,7 @@ function XYZ_to_Lab(XYZ) {
31213121 // from CIE standard, which now defines these as a rational fraction
31223122 var ε = 216/24389; // 6^3/29^3
31233123 var κ = 24389/27; // 29^3/3^3
3124- var white = [0.9642 , 1.0000 , 0.8249 ] ; // D50 reference white
3124+ var white = [[0.96422 , 1.00000 , 0.82521 ] ; // D50 reference white
31253125
31263126 // compute xyz, which is XYZ scaled relative to reference white
31273127 var xyz = XYZ.map((value, i) => value / white[i] );
@@ -3140,7 +3140,7 @@ function Lab_to_XYZ(Lab) {
31403140 // Convert Lab to D50-adapted XYZ
31413141 var κ = 24389/27; // 29^3/3^3
31423142 var ε = 216/24389; // 6^3/29^3
3143- var white = [0.9642 , 1.0000 , 0.8249 ] ; // D50 reference white
3143+ var white = [[0.96422 , 1.00000 , 0.82521 ] ; // D50 reference white
31443144 var f = [];
31453145
31463146 // compute f, starting with the luminance-related term
You can’t perform that action at this time.
0 commit comments