Sha256: 7e12ea3b497835f74a7572ccdd20dea7577c8e172013a031d3ed8efe6a2862ad

Contents?: true

Size: 382 Bytes

Versions: 10

Compression:

Stored size: 382 Bytes

Contents

# -*- encoding : utf-8 -*-
# Flips the comp being exported horizontally
class Tracksperanto::Middleware::Flip < Tracksperanto::Middleware::Base
  
  def self.action_description
    "Mirrors all the tracker paths horizontally"
  end
  
  def start_export(w, h)
    factor = -1
    @exporter = Tracksperanto::Middleware::Scaler.new(@exporter, :x_factor => factor)
    super
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tracksperanto-2.12.0 lib/middleware/flip.rb
tracksperanto-2.11.3 lib/middleware/flip.rb
tracksperanto-2.11.2 lib/middleware/flip.rb
tracksperanto-2.11.1 lib/middleware/flip.rb
tracksperanto-2.11.0 lib/middleware/flip.rb
tracksperanto-2.10.0 lib/middleware/flip.rb
tracksperanto-2.9.9 lib/middleware/flip.rb
tracksperanto-2.9.8 lib/middleware/flip.rb
tracksperanto-2.9.7 lib/middleware/flip.rb
tracksperanto-2.9.6 lib/middleware/flip.rb