Skip to content

Commit

Permalink
Added more significant figures to colorsynth.sRGB().
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Nov 16, 2023
1 parent 6db2822 commit 2ac17d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions colorsynth/_colorsynth.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ def sRGB(
"""
X, Y, Z = np.moveaxis(XYZ, axis, 0)

r = +3.2406 * X - 1.5372 * Y - 0.4986 * Z
g = -0.9689 * X + 1.8758 * Y + 0.0415 * Z
b = +0.0557 * X - 0.2040 * Y + 1.0570 * Z
r = +3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z
g = -0.9692660 * X + 1.8760108 * Y + 0.0415560 * Z
b = +0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z

result = np.stack([r, g, b], axis=axis)

Expand Down

0 comments on commit 2ac17d8

Please sign in to comment.