Class CMYK

class colormodel.CMYK(c, m, y, k)

An instance is a CMYK color value.

Constructor: creates a new CMYK color (c,m,y,k).

param c:initial cyan value

Precondition: float between 0.0 and 100.0, inclusive.

param m:initial magenta value

Precondition: float between 0.0 and 100.0, inclusive.

param y:initial yellow value

Precondition: float between 0.0 and 100.0, inclusive.

param k:initial black value

Precondition: float between 0.0 and 100.0, inclusive.

No arguments are optional.

Attributes

CMYK.cyan

The cyan channel.

Invariant: Value must be a float between 0.0 and 100.0, inclusive.

CMYK.magenta

The magenta channel.

Invariant: Value must be a float between 0.0 and 100.0, inclusive.

CMYK.yellow

The yellow channel.

Invariant: Value must be a float between 0.0 and 100.0, inclusive.

CMYK.black

The black channel.

Invariant: Value must be a float between 0.0 and 100.0, inclusive.