File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ function XYZ_to_Lab(XYZ) {
190190 // from CIE standard, which now defines these as a rational fraction
191191 var ε = 216 / 24389 ; // 6^3/29^3
192192 var κ = 24389 / 27 ; // 29^3/3^3
193- var white = [ 0.9642 , 1.0000 , 0.8249 ] ; // D50 reference white
193+ var white = [ [ 0.96422 , 1.00000 , 0.82521 ] ; // D50 reference white
194194
195195 // compute xyz, which is XYZ scaled relative to reference white
196196 var xyz = XYZ . map ( ( value , i ) => value / white [ i ] ) ;
@@ -210,7 +210,7 @@ function Lab_to_XYZ(Lab) {
210210 // http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
211211 var κ = 24389 / 27 ; // 29^3/3^3
212212 var ε = 216 / 24389 ; // 6^3/29^3
213- var white = [ 0.9642 , 1.0000 , 0.8249 ] ; // D50 reference white
213+ var white = [ [ 0.96422 , 1.00000 , 0.82521 ] ; // D50 reference white
214214 var f = [ ] ;
215215
216216 // compute f, starting with the luminance-related term
You can’t perform that action at this time.
0 commit comments