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 – initial cyan value Precondition: float between 0.0 and 100.0, inclusive.
Parameter: m – initial magenta value Precondition: float between 0.0 and 100.0, inclusive.
Parameter: y – initial yellow value Precondition: float between 0.0 and 100.0, inclusive.
Parameter: k – initial black value Precondition: float between 0.0 and 100.0, inclusive.
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.