Class CMYK

This class represents a CMYK color value.

Constructor

CMYK(c, m, y, k)

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

Parameter:
  • c (float between 0.0 and 100.0, inclusive) – the initial cyan value
  • m (float between 0.0 and 100.0, inclusive.) – the initial magenta value
  • y (float between 0.0 and 100.0, inclusive.) – initial yellow value
  • k (float between 0.0 and 100.0, inclusive.) – initial black value

No arguments are optional.

Attributes

cyan

The cyan channel.

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

magenta

The magenta channel.

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

yellow

The yellow channel.

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

black

The black channel.

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