node/colorjs.io/src/spaces/p3.js
raw| 1 | import RGBColorSpace from "../RGBColorSpace.js"; |
| 2 | import P3Linear from "./p3-linear.js"; |
| 3 | import sRGB from "./srgb.js"; |
| 4 | |
| 5 | export default new RGBColorSpace({ |
| 6 | id: "p3", |
| 7 | cssId: "display-p3", |
| 8 | name: "P3", |
| 9 | base: P3Linear, |
| 10 | linearGamut: P3Linear, |
| 11 | // Gamma encoding/decoding is the same as sRGB |
| 12 | fromBase: sRGB.fromBase, |
| 13 | toBase: sRGB.toBase, |
| 14 | }); |