summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst/src/geom/color.rs2
-rw-r--r--tests/ref/compiler/repr-color-gradient.pngbin50046 -> 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
index 36747d45..95136c1a 100644
--- a/tests/ref/compiler/repr-color-gradient.png
+++ b/tests/ref/compiler/repr-color-gradient.png
Binary files differ