From a3e89582cfe9873e790a21b2f593b8bc4a7abcb5 Mon Sep 17 00:00:00 2001 From: Dmitry Sharabin Date: Wed, 25 Dec 2024 18:38:09 +0100 Subject: [PATCH] [spaces/xyz-d65] Add ref ranges to relative XYZ color spaces (#620) Resolved in https://github.com/color-js/apps/issues/2. --- src/spaces/xyz-d65.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/spaces/xyz-d65.js b/src/spaces/xyz-d65.js index ecd3f7532..44a6fadfa 100644 --- a/src/spaces/xyz-d65.js +++ b/src/spaces/xyz-d65.js @@ -4,9 +4,18 @@ export default new ColorSpace({ id: "xyz-d65", name: "XYZ D65", coords: { - x: {name: "X"}, - y: {name: "Y"}, - z: {name: "Z"}, + x: { + refRange: [0, 1], + name: "X", + }, + y: { + refRange: [0, 1], + name: "Y", + }, + z: { + refRange: [0, 1], + name: "Z", + }, }, white: "D65", formats: {