Class: Pdfrb::Content::ColorSpace::CalGray

Inherits:
Object
  • Object
show all
Defined in:
lib/pdfrb/content/color_space.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(white_point:, gamma: 1.0) ⇒ CalGray

Returns a new instance of CalGray.



46
47
48
49
# File 'lib/pdfrb/content/color_space.rb', line 46

def initialize(white_point:, gamma: 1.0)
  @white_point = white_point
  @gamma = gamma
end

Instance Attribute Details

#gammaObject (readonly)

Returns the value of attribute gamma.



44
45
46
# File 'lib/pdfrb/content/color_space.rb', line 44

def gamma
  @gamma
end

#white_pointObject (readonly)

Returns the value of attribute white_point.



44
45
46
# File 'lib/pdfrb/content/color_space.rb', line 44

def white_point
  @white_point
end

Instance Method Details

#componentsObject



52
# File 'lib/pdfrb/content/color_space.rb', line 52

def components; 1; end

#familyObject



51
# File 'lib/pdfrb/content/color_space.rb', line 51

def family; :CalGray; end