diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2023-11-15 13:49:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-15 14:49:45 +0100 |
| commit | 7aef798658e47e564abeeb907e00c0090b700da5 (patch) | |
| tree | 371505966b9229d0d6d00325c108b97e394d0cf1 | |
| parent | f39a8bc01521d55da5296dccef8fb7dd9d3f6327 (diff) | |
Fix cmyk repr (#2682)
| -rw-r--r-- | crates/typst/src/geom/color.rs | 2 | ||||
| -rw-r--r-- | tests/ref/compiler/repr-color-gradient.png | bin | 50046 -> 50034 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/geom/color.rs b/crates/typst/src/geom/color.rs index 5bfb93c3..3801dbab 100644 --- a/crates/typst/src/geom/color.rs +++ b/crates/typst/src/geom/color.rs @@ -1409,7 +1409,7 @@ impl Repr for Color { } Self::Cmyk(c) => { eco_format!( - "rgb({}, {}, {}, {})", + "cmyk({}, {}, {}, {})", Ratio::new(c.c as _).repr(), Ratio::new(c.m as _).repr(), Ratio::new(c.y as _).repr(), diff --git a/tests/ref/compiler/repr-color-gradient.png b/tests/ref/compiler/repr-color-gradient.png Binary files differindex 36747d45..95136c1a 100644 --- a/tests/ref/compiler/repr-color-gradient.png +++ b/tests/ref/compiler/repr-color-gradient.png |
