Class: Pdfrb::Content::Shading::Axial
- Defined in:
- lib/pdfrb/content/shading/base.rb
Overview
Axial (linear) gradient. ShadingType 2. ISO 32000-2 ยง8.7.4.5.4.
Instance Attribute Summary collapse
-
#end_point ⇒ Object
readonly
Returns the value of attribute end_point.
-
#extend ⇒ Object
readonly
Returns the value of attribute extend.
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#start_point ⇒ Object
readonly
Returns the value of attribute start_point.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color_space:, start_point:, end_point:, function:, extend: nil) ⇒ Axial
constructor
A new instance of Axial.
Methods inherited from Base
Constructor Details
#initialize(color_space:, start_point:, end_point:, function:, extend: nil) ⇒ Axial
Returns a new instance of Axial.
81 82 83 84 85 86 87 88 |
# File 'lib/pdfrb/content/shading/base.rb', line 81 def initialize(color_space:, start_point:, end_point:, function:, extend: nil) super(color_space: color_space) @start_point = start_point @end_point = end_point @function = function @extend = extend end |
Instance Attribute Details
#end_point ⇒ Object (readonly)
Returns the value of attribute end_point.
79 80 81 |
# File 'lib/pdfrb/content/shading/base.rb', line 79 def end_point @end_point end |
#extend ⇒ Object (readonly)
Returns the value of attribute extend.
79 80 81 |
# File 'lib/pdfrb/content/shading/base.rb', line 79 def extend @extend end |
#function ⇒ Object (readonly)
Returns the value of attribute function.
79 80 81 |
# File 'lib/pdfrb/content/shading/base.rb', line 79 def function @function end |
#start_point ⇒ Object (readonly)
Returns the value of attribute start_point.
79 80 81 |
# File 'lib/pdfrb/content/shading/base.rb', line 79 def start_point @start_point end |
Class Method Details
.shading_type ⇒ Object
91 |
# File 'lib/pdfrb/content/shading/base.rb', line 91 def shading_type; 2; end |