class HexaPDF::Content::ColorSpace::DeviceCMYK::Color

See: PDF2.0 s8.6.4.4
A color in the DeviceCMYK color space.

def color_space

Returns the DeviceCMYK color space module.
def color_space
  DeviceCMYK::DEFAULT
end

def components

Returns the CMYK color as an array of normalized color values.
def components
  [@c, @m, @y, @k]
end

def initialize(c, m, y, k)

Each argument has to be a float between 0.0 and 1.0.

components.
Initializes the color with the +c+ (cyan), +m+ (magenta), +y+ (yellow) and +k+ (black)
def initialize(c, m, y, k)
  @c = c
  @m = m
  @y = y
  @k = k
end