class CompositorNode::Blender
Constants
- MULTIPLY
- OVERLAY
Attributes
method[RW]
source_a[RW]
source_b[RW]
x_offset[RW]
y_offset[RW]
Public Class Methods
new(options = {})
click to toggle source
# File lib/compositor_node/blender.rb, line 10 def initialize(options = {}) @source_a = options[:source_a] @source_b = options[:source_b] @method = options[:method] @x_offset = options[:x_offset] || 0 @y_offset = options[:y_offset] || 0 end
Public Instance Methods
execute()
click to toggle source
# File lib/compositor_node/blender.rb, line 18 def execute image_a = @source_a.execute image_b = @source_b.execute Engine.blend(image_a, image_b, @x_offset, @y_offset, @method) end