Class: Pdfrb::Content::Shading::Radial
- Defined in:
- lib/pdfrb/content/shading/base.rb
Overview
Radial gradient. ShadingType 3. ISO 32000-2 ยง8.7.4.5.3.
Instance Attribute Summary collapse
-
#center1 ⇒ Object
readonly
Returns the value of attribute center1.
-
#center2 ⇒ Object
readonly
Returns the value of attribute center2.
-
#extend ⇒ Object
readonly
Returns the value of attribute extend.
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#radius1 ⇒ Object
readonly
Returns the value of attribute radius1.
-
#radius2 ⇒ Object
readonly
Returns the value of attribute radius2.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color_space:, center1:, radius1:, center2:, radius2:, function:, extend: nil) ⇒ Radial
constructor
A new instance of Radial.
Methods inherited from Base
Constructor Details
#initialize(color_space:, center1:, radius1:, center2:, radius2:, function:, extend: nil) ⇒ Radial
Returns a new instance of Radial.
111 112 113 114 115 116 117 118 119 120 |
# File 'lib/pdfrb/content/shading/base.rb', line 111 def initialize(color_space:, center1:, radius1:, center2:, radius2:, function:, extend: nil) super(color_space: color_space) @center1 = center1 @radius1 = radius1 @center2 = center2 @radius2 = radius2 @function = function @extend = extend end |
Instance Attribute Details
#center1 ⇒ Object (readonly)
Returns the value of attribute center1.
109 110 111 |
# File 'lib/pdfrb/content/shading/base.rb', line 109 def center1 @center1 end |
#center2 ⇒ Object (readonly)
Returns the value of attribute center2.
109 110 111 |
# File 'lib/pdfrb/content/shading/base.rb', line 109 def center2 @center2 end |
#extend ⇒ Object (readonly)
Returns the value of attribute extend.
109 110 111 |
# File 'lib/pdfrb/content/shading/base.rb', line 109 def extend @extend end |
#function ⇒ Object (readonly)
Returns the value of attribute function.
109 110 111 |
# File 'lib/pdfrb/content/shading/base.rb', line 109 def function @function end |
#radius1 ⇒ Object (readonly)
Returns the value of attribute radius1.
109 110 111 |
# File 'lib/pdfrb/content/shading/base.rb', line 109 def radius1 @radius1 end |
#radius2 ⇒ Object (readonly)
Returns the value of attribute radius2.
109 110 111 |
# File 'lib/pdfrb/content/shading/base.rb', line 109 def radius2 @radius2 end |
Class Method Details
.shading_type ⇒ Object
123 |
# File 'lib/pdfrb/content/shading/base.rb', line 123 def shading_type; 3; end |