ITADN

Error: no toXYZ or toXYZ_M on undefined | core.js:273

#9Closedskorphil 创建于 2024-12-21
S
skorphilcommented
```js import { deserialize, convert, sRGB, OKLCH, OKLab } from "@texel/color"; const { coords, id } = deserialize(color); // coords = [0,0,0,0], id = "srgb", color = "rgba(0,0,0,0)" const convertedColor = convert(coords, id, OKLab); // Error: no toXYZ or toXYZ_M on undefined // convert core.js:273 ``` What's wrong here? Maybe with types i could better understand the issue
关闭于 2024-12-21 1 条评论