Class: Pdfrb::Content::Operator::FillGray

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

Overview

Color operators (s8.6). Lowercase sets fill color, uppercase sets stroke color.

Class Method Summary collapse

Methods inherited from Base

register, serialize

Class Method Details

.invoke(processor, n) ⇒ Object



11
12
13
# File 'lib/pdfrb/content/operators/color.rb', line 11

def self.invoke(processor, n)
  processor.update_graphics_state(fill_color: [:gray, n.to_f])
end

.nameObject



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

def self.name; "g"; end