Class: Pdfrb::Content::ColorSpace::CalGray
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::CalGray
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#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:, gamma: 1.0) ⇒ CalGray
constructor
A new instance of CalGray.
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
#gamma ⇒ Object (readonly)
Returns the value of attribute gamma.
44 45 46 |
# File 'lib/pdfrb/content/color_space.rb', line 44 def gamma @gamma end |
#white_point ⇒ Object (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
#components ⇒ Object
52 |
# File 'lib/pdfrb/content/color_space.rb', line 52 def components; 1; end |
#family ⇒ Object
51 |
# File 'lib/pdfrb/content/color_space.rb', line 51 def family; :CalGray; end |