From 7aef798658e47e564abeeb907e00c0090b700da5 Mon Sep 17 00:00:00 2001 From: frozolotl <44589151+frozolotl@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:49:45 +0000 Subject: Fix cmyk repr (#2682) --- crates/typst/src/geom/color.rs | 2 +- tests/ref/compiler/repr-color-gradient.png | Bin 50046 -> 50034 bytes 2 files changed, 1 insertion(+), 1 deletion(-) 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 Binary files a/tests/ref/compiler/repr-color-gradient.png and b/tests/ref/compiler/repr-color-gradient.png differ -- cgit v1.2.3