Class: Pdfrb::Content::ColorSpace::Lab

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], range: [-100, 100, -100, 100]) ⇒ Lab

Returns a new instance of Lab.



73
74
75
76
77
# File 'lib/pdfrb/content/color_space.rb', line 73

def initialize(white_point:, black_point: [0, 0, 0], range: [-100, 100, -100, 100])
  @white_point = white_point
  @black_point = black_point
  @range = range
end

Instance Attribute Details

#black_pointObject (readonly)

Returns the value of attribute black_point.



71
72
73
# File 'lib/pdfrb/content/color_space.rb', line 71

def black_point
  @black_point
end

#rangeObject (readonly)

Returns the value of attribute range.



71
72
73
# File 'lib/pdfrb/content/color_space.rb', line 71

def range
  @range
end

#white_pointObject (readonly)

Returns the value of attribute white_point.



71
72
73
# File 'lib/pdfrb/content/color_space.rb', line 71

def white_point
  @white_point
end

Instance Method Details

#componentsObject



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

def components; 3; end

#familyObject



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

def family; :Lab; end