From d00bd1aa371c8313dd4fa29140b0249984ec70fc Mon Sep 17 00:00:00 2001 From: Phil Hill Date: Fri, 11 Jun 2021 11:41:46 -0400 Subject: [PATCH] Correct the limits on XYZ model --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e2be3a9..bdb850e 100644 --- a/index.js +++ b/index.js @@ -216,9 +216,9 @@ Color.prototype = { yellow: getset('cmyk', 2, maxfn(100)), black: getset('cmyk', 3, maxfn(100)), - x: getset('xyz', 0, maxfn(100)), + x: getset('xyz', 0, maxfn(95.047)), y: getset('xyz', 1, maxfn(100)), - z: getset('xyz', 2, maxfn(100)), + z: getset('xyz', 2, maxfn(108.833)), l: getset('lab', 0, maxfn(100)), a: getset('lab', 1),