# Spread an image on the channels of the Cmyk

**URL:** <https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587>\
**Category:** Coding Questions\
**Created:** [August 25, 2019, 10:37am UTC](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587 "2019-08-25T10:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grisha](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Grisha](https://discourse.processing.org/u/Grisha)\
**Post date:** [August 25, 2019, 10:37am UTC](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587/1 "2019-08-25T10:37:53Z")

</div>

I need to make 4 Pimage variables which will contain only one color of cmyk channel from source image. Could you help me, please?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 26, 2019, 10:15pm UTC](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587/2 "2019-08-26T22:15:11Z")

</div>

> [@Grisha](#):
>
> 4 Pimage variables which will contain only one color of cmyk channel from source image

For PDF, specifically, I recall @koogs working on CMYK output on an old thread here:

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/26702/cmyk-export-from-processing-what-s-the-latest)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

For a sketch that produces C M Y K images from an input image, see this thread:

> [@Best way to do this: tint(C, M, Y, K)?](https://discourse.processing.org/t/best-way-to-do-this-tint-c-m-y-k/5317/11):
>
> I think @Jakub is right. The reference for all the blend modes: [blendMode()](https://processing.org/reference/blendMode_.html) or maybe [blend()](https://processing.org/reference/blend_.html). You can use SUBSTRACT or MULTIPLY and try another ones. They are similar to [Photoshop blending modes](https://helpx.adobe.com/photoshop/using/blending-modes.html). Mathematically, RGB converts directly to CMY, with no need of Black (K). Theoretically, the mix of C+M+Y should result in black. We only use Black on printing because inks are not perfect, so black ink gets better results for contrast and other details. So, when you add black ink, you need to do the m…
