Class: Pdfrb::Content::Operator::FillCMYK

Inherits:
Base
  • Object
show all
Defined in:
lib/pdfrb/content/operators/color.rb

Class Method Summary collapse

Methods inherited from Base

register, serialize

Class Method Details

.invoke(processor, c, m, y, k) ⇒ Object



43
44
45
# File 'lib/pdfrb/content/operators/color.rb', line 43

def self.invoke(processor, c, m, y, k)
  processor.update_graphics_state(fill_color: [:cmyk, c.to_f, m.to_f, y.to_f, k.to_f])
end

.nameObject



42
# File 'lib/pdfrb/content/operators/color.rb', line 42

def self.name; "k"; end