mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-28 19:57:05 -06:00
Merge #679
This commit is contained in:
@@ -375,6 +375,11 @@ impl Dest {
|
||||
};
|
||||
Color::Cmyk { c, m, y, k }
|
||||
}
|
||||
// CMYK straight into the destination RGB (the destination shares the source's CMYK).
|
||||
(_, Color::Cmyk { c, m, y, k }) => {
|
||||
let [r, g, b] = self.cms.cmyk_to_rgb([*c, *m, *y, *k], intent);
|
||||
Color::Rgb { r, g, b }
|
||||
}
|
||||
_ => {
|
||||
let [r, g, b] = self.cms.srgb_to_rgb(source.display_rgb(c));
|
||||
Color::Rgb { r, g, b }
|
||||
|
||||
Reference in New Issue
Block a user