Skip to content

Commit 0037c0a

Browse files
committed
typo in sample code
1 parent aa8796f commit 0037c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-color-4/conversions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

140140
function 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 ]

0 commit comments

Comments
 (0)