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
param m:initial magenta value
param y:initial yellow value
param k:initial black value

Precondition: The values c,m,y,k are floats between 0.0 and 100.0, inclusive.

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.

Table Of Contents

Previous topic

Class RGB

Next topic

Class HSV

This Page