Class: Pdfrb::Content::ColorSpace::CalRGB

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:, black_point: [0, 0, 0], gamma: [1, 1, 1]) ⇒ CalRGB

Returns a new instance of CalRGB.



59
60
61
62
63
# File 'lib/pdfrb/content/color_space.rb', line 59

def initialize(white_point:, black_point: [0, 0, 0], gamma: [1, 1, 1])
  @white_point = white_point
  @black_point = black_point
  @gamma = gamma
end

Instance Attribute Details

#black_pointObject (readonly)

Returns the value of attribute black_point.



57
58
59
# File 'lib/pdfrb/content/color_space.rb', line 57

def black_point
  @black_point
end

#gammaObject (readonly)

Returns the value of attribute gamma.



57
58
59
# File 'lib/pdfrb/content/color_space.rb', line 57

def gamma
  @gamma
end

#white_pointObject (readonly)

Returns the value of attribute white_point.



57
58
59
# File 'lib/pdfrb/content/color_space.rb', line 57

def white_point
  @white_point
end

Instance Method Details

#componentsObject



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

def components; 3; end

#familyObject



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

def family; :CalRGB; end