File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ function lin_ProPhoto_to_XYZ(rgb) {
128128 // convert an array of linear-light prophoto-rgb values to CIE XYZ
129129 // using D50 (so no chromatic adaptation needed afterwards)
130130 // http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
131- var M = Math . matrix ( [
131+ var M = math . matrix ( [
132132 [ 0.7977604896723027 , 0.13518583717574031 , 0.0313493495815248 ] ,
133133 [ 0.2880711282292934 , 0.7118432178101014 , 0.00008565396060525902 ] ,
134134 [ 0.0 , 0.0 , 0.8251046025104601 ]
@@ -139,7 +139,7 @@ function lin_ProPhoto_to_XYZ(rgb) {
139139
140140function XYZ_to_lin_ProPhoto ( XYZ ) {
141141 // convert XYZ to linear-light prophoto-rgb
142- var M = Math . matrix ( [
142+ var M = math . matrix ( [
143143 [ 1.3457989731028281 , - 0.25558010007997534 , - 0.05110628506753401 ] ,
144144 [ - 0.5446224939028347 , 1.5082327413132781 , 0.02053603239147973 ] ,
145145 [ 0.0 , 0.0 , 1.2119675456389454 ]
You can’t perform that action at this time.
0 commit comments