Class: CompositorNode::Blender
- Inherits:
-
Object
- Object
- CompositorNode::Blender
- Defined in:
- lib/compositor_node/blender.rb
Defined Under Namespace
Classes: NoBlendMethodError
Constant Summary collapse
- MULTIPLY =
'MULTIPLY'
- OVERLAY =
'OVERLAY'
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#source_a ⇒ Object
Returns the value of attribute source_a.
-
#source_b ⇒ Object
Returns the value of attribute source_b.
-
#x_offset ⇒ Object
Returns the value of attribute x_offset.
-
#y_offset ⇒ Object
Returns the value of attribute y_offset.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options = {}) ⇒ Blender
constructor
A new instance of Blender.
Constructor Details
#initialize(options = {}) ⇒ Blender
Returns a new instance of Blender.
10 11 12 13 14 15 16 |
# File 'lib/compositor_node/blender.rb', line 10 def initialize( = {}) @source_a = [:source_a] @source_b = [:source_b] @method = [:method] @x_offset = [:x_offset] || 0 @y_offset = [:y_offset] || 0 end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
3 4 5 |
# File 'lib/compositor_node/blender.rb', line 3 def method @method end |
#source_a ⇒ Object
Returns the value of attribute source_a.
3 4 5 |
# File 'lib/compositor_node/blender.rb', line 3 def source_a @source_a end |
#source_b ⇒ Object
Returns the value of attribute source_b.
3 4 5 |
# File 'lib/compositor_node/blender.rb', line 3 def source_b @source_b end |
#x_offset ⇒ Object
Returns the value of attribute x_offset.
3 4 5 |
# File 'lib/compositor_node/blender.rb', line 3 def x_offset @x_offset end |
#y_offset ⇒ Object
Returns the value of attribute y_offset.
3 4 5 |
# File 'lib/compositor_node/blender.rb', line 3 def y_offset @y_offset end |