# Gimp.RGB.to_cmyk

    @accepts(Gimp.RGB, float, Gimp.CMYK)
    @returns(none)
    def to_cmyk(self, pullout, cmyk):
        # Python wrapper for gimp_rgb_to_cmyk()

Does a naive conversion from RGB to CMYK colorspace. A simple formula that doesn't take any color-profiles into account is used. The amount of black pullout how can be controlled via the pullout parameter. A pullout value of 0 makes this a conversion to CMY. A value of 1 causes the maximum amount of black to be pulled out.

self

  A value in the RGB colorspace

pullout

  A scaling value (0-1) indicating how much black should be pulled out

cmyk

  The input value naively converted to the CMYK colorspace