Class: Tracksperanto::Tool::Flip

Inherits:
Base
  • Object
show all
Defined in:
lib/tools/flip.rb

Overview

Flips the comp being exported horizontally

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, #initialize

Methods included from Parameters

included, #parameter, #parameters

Methods included from SimpleExport

#just_export

Methods included from ConstName

#const_name, included

Methods included from BlockInit

#initialize

Methods included from Casts

#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string, included

Constructor Details

This class inherits a constructor from Tracksperanto::Tool::Base

Class Method Details

.action_descriptionObject



5
6
7
# File 'lib/tools/flip.rb', line 5

def self.action_description
  "Mirrors all the tracker paths horizontally"
end

Instance Method Details

#start_export(w, h) ⇒ Object



9
10
11
12
13
# File 'lib/tools/flip.rb', line 9

def start_export(w, h)
  factor = -1
  @exporter = Tracksperanto::Tool::Scaler.new(@exporter, :x_factor => factor)
  super
end