Home/ Reference/ Application

app.CreateCMYKColor(c, m, y, k)

Builds a CMYK color object. Prefer this for anything that goes to press.

Signature

app.CreateCMYKColor(c, m, y, k)

Notes

Builds a CMYK color object. Prefer this for anything that goes to press.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

# a common press blue: C=100 M=70 Y=0 K=0
cmyk = app.CreateCMYKColor(100, 70, 0, 0)
shape.Fill.ApplyUniformFill(cmyk)

print("Filled with CMYK(100,70,0,0)")

About this section: Application

Application — the CorelDRAW application object.

Other entries in this section