Class CMYK

import introcs

This class represents a CMYK color value. CMYK is not an additive color, so it has no support for tkinter or kivy graphics.

Constructor

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

An instance is a CMYK color value.

All color value ranges are inclusive. So 100.0 is a valid cyan value, but 100.001 is not.

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.