| 1 |
import ColorSpace from "../ColorSpace.js"; |
| 2 |
import REC2020 from "./rec2020.js"; |
| 3 |
import HSL from "./hsl.js"; |
| 4 |
|
| 5 |
export default new ColorSpace({ |
| 6 |
id: "hsl-rec2020", |
| 7 |
cssId: "--hsl-rec2020", |
| 8 |
name: "HSL Rec.2020", |
| 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: REC2020, |
| 26 |
rgbGamut: REC2020, |
| 27 |
fromBase: HSL.fromBase, |
| 28 |
toBase: HSL.toBase, |
| 29 |
}); |