Class: Pdfrb::Content::ColorSpace::Lab
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::Lab
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#black_point ⇒ Object
readonly
Returns the value of attribute black_point.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#white_point ⇒ Object
readonly
Returns the value of attribute white_point.
Instance Method Summary collapse
- #components ⇒ Object
- #family ⇒ Object
-
#initialize(white_point:, black_point: [0, 0, 0], range: [-100, 100, -100, 100]) ⇒ Lab
constructor
A new instance of Lab.
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_point ⇒ Object (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 |
#range ⇒ Object (readonly)
Returns the value of attribute range.
71 72 73 |
# File 'lib/pdfrb/content/color_space.rb', line 71 def range @range end |
#white_point ⇒ Object (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
#components ⇒ Object
80 |
# File 'lib/pdfrb/content/color_space.rb', line 80 def components; 3; end |
#family ⇒ Object
79 |
# File 'lib/pdfrb/content/color_space.rb', line 79 def family; :Lab; end |