Class: Pdfrb::Content::ColorSpace::CalRGB
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::CalRGB
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#black_point ⇒ Object
readonly
Returns the value of attribute black_point.
-
#gamma ⇒ Object
readonly
Returns the value of attribute gamma.
-
#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], gamma: [1, 1, 1]) ⇒ CalRGB
constructor
A new instance of CalRGB.
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_point ⇒ Object (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 |
#gamma ⇒ Object (readonly)
Returns the value of attribute gamma.
57 58 59 |
# File 'lib/pdfrb/content/color_space.rb', line 57 def gamma @gamma end |
#white_point ⇒ Object (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
#components ⇒ Object
66 |
# File 'lib/pdfrb/content/color_space.rb', line 66 def components; 3; end |
#family ⇒ Object
65 |
# File 'lib/pdfrb/content/color_space.rb', line 65 def family; :CalRGB; end |