Debian Codegraph @

node/colorjs.io/src/spaces/hsl-p3.js

raw
1 import ColorSpace from "../ColorSpace.js";
2 import P3 from "./p3.js";
3 import HSL from "./hsl.js";
4
5 export default new ColorSpace({
6 id: "hsl-p3",
7 cssId: "--hsl-p3",
8 name: "HSL P3",
9 coords: {
10 h: {
11 refRange: [0, 360],
12 type: "angle",
13 name: "Hue",
14 },
15 s: {
16 range: [0, 100],
17 name: "Saturation",
18 },
19 l: {
20 range: [0, 100],
21 name: "Lightness",
22 },
23 },
24
25 base: P3,
26 rgbGamut: P3,
27 fromBase: HSL.fromBase,
28 toBase: HSL.toBase,
29 });