diff options
| author | Eric Biedert <github@ericbiedert.de> | 2024-06-22 11:09:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 09:09:36 +0000 |
| commit | 09e3bbd3b481e44511139577ee9b8a5bcc16a26c (patch) | |
| tree | bf55e9f38058547ca1430cb388a3852a976ddad4 /crates | |
| parent | 381a82e764829281b22d4959333c7c0f477a53e3 (diff) | |
Fix luma to CMYK conversion (#4425)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/visualize/color.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/visualize/color.rs b/crates/typst/src/visualize/color.rs index 17f4b5a4..52706a96 100644 --- a/crates/typst/src/visualize/color.rs +++ b/crates/typst/src/visualize/color.rs @@ -1721,7 +1721,7 @@ impl Cmyk { } fn from_luma(luma: Luma) -> Self { - let l = luma.luma; + let l = 1.0 - luma.luma; Cmyk::new(l * 0.75, l * 0.68, l * 0.67, l * 0.90) } |
