@@ -134,7 +134,7 @@ function lin_ProPhoto_to_XYZ(rgb) {
134134 [ 0.0 , 0.0 , 0.8251046025104601 ]
135135 ] ) ;
136136
137- return Math . multiply ( M , rgb ) . valueOf ( ) ;
137+ return math . multiply ( M , rgb ) . valueOf ( ) ;
138138}
139139
140140function XYZ_to_lin_ProPhoto ( XYZ ) {
@@ -145,7 +145,7 @@ function XYZ_to_lin_ProPhoto(XYZ) {
145145 [ 0.0 , 0.0 , 1.2119675456389454 ]
146146 ] ) ;
147147
148- return Math . multiply ( M , XYZ ) . valueOf ( ) ;
148+ return math . multiply ( M , XYZ ) . valueOf ( ) ;
149149}
150150
151151// a98-rgb functions
@@ -172,24 +172,24 @@ function lin_a98rgb_to_XYZ(rgb) {
172172 // http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
173173 // which has greater numerical precsion than section 4.3.5.3 of
174174 // https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
175- var M = Math . matrix ( [
175+ var M = math . matrix ( [
176176 [ 0.5766690429101305 , 0.1855582379065463 , 0.1882286462349947 ] ,
177177 [ 0.29734497525053605 , 0.6273635662554661 , 0.07529145849399788 ] ,
178178 [ 0.02703136138641234 , 0.07068885253582723 , 0.9913375368376388 ]
179179 ] ) ;
180180
181- return Math . multiply ( M , rgb ) . valueOf ( ) ;
181+ return math . multiply ( M , rgb ) . valueOf ( ) ;
182182}
183183
184184function XYZ_to_lin_a98rgb ( XYZ ) {
185185 // convert XYZ to linear-light a98-rgb
186- var M = Math . matrix ( [
186+ var M = math . matrix ( [
187187 [ 2.0415879038107465 , - 0.5650069742788596 , - 0.34473135077832956 ] ,
188188 [ - 0.9692436362808795 , 1.8759675015077202 , 0.04155505740717557 ] ,
189189 [ 0.013444280632031142 , - 0.11836239223101838 , 1.0151749943912054 ]
190190 ] ) ;
191191
192- return Math . multiply ( M , XYZ ) . valueOf ( ) ;
192+ return math . multiply ( M , XYZ ) . valueOf ( ) ;
193193}
194194
195195//Rec. 2020-related functions
0 commit comments