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)¶ - Parameters
c (
float0.0..100.0) – initial cyan valuem (
float0.0..100.0) – initial magenta valuey (
float0.0..100.0) – initial yellow valuek (
float0.0..100.0) – initial black value
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.