diff options
| author | Martin Haug <mhaug@live.de> | 2024-02-12 14:03:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-12 13:03:36 +0000 |
| commit | 9f1e0390c1dfb5643fd3cc419e28888f1d17a95b (patch) | |
| tree | 6c2667d56a16928c4a54ae52df853fbc219d2439 /tests | |
| parent | f776f0a75fb36deabab8e8cdf880389e4e2eb6e8 (diff) | |
Add color-managed CMYK to RGB conversion (#3288)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/gradient-cmyk-encode.png | bin | 875 -> 1601 bytes | |||
| -rw-r--r-- | tests/ref/compiler/color.png | bin | 1344 -> 1407 bytes | |||
| -rw-r--r-- | tests/typ/compiler/methods.typ | 4 |
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/ref/bugs/gradient-cmyk-encode.png b/tests/ref/bugs/gradient-cmyk-encode.png Binary files differindex 7bd82cce..5002442f 100644 --- a/tests/ref/bugs/gradient-cmyk-encode.png +++ b/tests/ref/bugs/gradient-cmyk-encode.png diff --git a/tests/ref/compiler/color.png b/tests/ref/compiler/color.png Binary files differindex a585bf30..69dbe5e8 100644 --- a/tests/ref/compiler/color.png +++ b/tests/ref/compiler/color.png diff --git a/tests/typ/compiler/methods.typ b/tests/typ/compiler/methods.typ index 262f1497..a3d8c658 100644 --- a/tests/typ/compiler/methods.typ +++ b/tests/typ/compiler/methods.typ @@ -143,8 +143,8 @@ #test(rgb(1, 2, 3).to-hex(), "#010203") #test(rgb(1, 2, 3, 4).to-hex(), "#01020304") #test(luma(40).to-hex(), "#282828") -#test-repr(cmyk(4%, 5%, 6%, 7%).to-hex(), "#e4e1df") -#test-repr(rgb(cmyk(4%, 5%, 6%, 7%)).components(), (89.28%, 88.35%, 87.42%, 100%)) +#test-repr(cmyk(4%, 5%, 6%, 7%).to-hex(), "#e0dcda") +#test-repr(rgb(cmyk(4%, 5%, 6%, 7%)).components(), (87.84%, 86.27%, 85.49%, 100%)) #test-repr(rgb(luma(40%)).components(alpha: false), (40%, 40%, 40%)) #test-repr(cmyk(luma(40)).components(), (11.76%, 10.67%, 10.51%, 14.12%)) #test-repr(cmyk(rgb(1, 2, 3)), cmyk(66.67%, 33.33%, 0%, 98.82%)) |
