Class: CompositorNode::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/compositor_node/engine.rb

Defined Under Namespace

Classes: NoEngineError

Class Method Summary collapse

Class Method Details

.blend(source_a, source_b, x_offset, y_offset, method) ⇒ Object



32
33
34
35
# File 'lib/compositor_node/engine.rb', line 32

def self.blend(source_a, source_b, x_offset, y_offset, method)
  raise Blender::NoBlendMethodError if method.nil?
  execute.blend(source_a, source_b, x_offset, y_offset, execute.const_get(method))
end

.crop(source, x_offset, y_offset, width, height) ⇒ Object



37
38
39
# File 'lib/compositor_node/engine.rb', line 37

def self.crop(source, x_offset, y_offset, width, height)
  execute.crop(source, x_offset, y_offset, width, height)
end

.executeObject



7
8
9
10
# File 'lib/compositor_node/engine.rb', line 7

def self.execute
  raise Engine::NoEngineError if Config.engine.nil?
  Config.engine
end

.height(source) ⇒ Object



28
29
30
# File 'lib/compositor_node/engine.rb', line 28

def self.height(source)
  execute.height(source)
end

.read(source) ⇒ Object



12
13
14
# File 'lib/compositor_node/engine.rb', line 12

def self.read(source)
  execute.read(source)
end

.resize(source, width, height) ⇒ Object



20
21
22
# File 'lib/compositor_node/engine.rb', line 20

def self.resize(source, width, height)
  execute.resize(source, width, height)
end

.width(source) ⇒ Object



24
25
26
# File 'lib/compositor_node/engine.rb', line 24

def self.width(source)
  execute.width(source)
end

.write(source, path) ⇒ Object



16
17
18
# File 'lib/compositor_node/engine.rb', line 16

def self.write(source, path)
  execute.write(source, path)
end