Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit ff383b2

Browse files
committed
Update "xyz_scaling" chromatic adaptation matrix formatting.
1 parent d456fc5 commit ff383b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

colormath/color_constants.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@
4040
# Chromatic Adaptation Matrices
4141
# http://brucelindbloom.com/Eqn_ChromAdapt.html
4242
ADAPTATION_MATRICES = {
43-
"xyz_scaling": numpy.array(((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0))),
43+
"xyz_scaling": numpy.array(
44+
(
45+
(1.00000, 0.00000, 0.00000),
46+
(0.00000, 1.00000, 0.00000),
47+
(0.00000, 0.00000, 1.00000),
48+
)
49+
),
4450
"bradford": numpy.array(
4551
(
4652
(0.8951, 0.2664, -0.1614),

0 commit comments

Comments
 (0)