Sha256: 9056e66ad31f0405a9d7c4d354919a05b5de98ee686c8e315d6026c6751533cf

Contents?: true

Size: 306 Bytes

Versions: 23

Compression:

Stored size: 306 Bytes

Contents

# Flips the comp being exported vertically
class Tracksperanto::Middleware::Flop < Tracksperanto::Middleware::Base
  
  attr_accessor :enabled
  
  def start_export(w, h)
    factor = enabled ? -1 : 1
    @exporter = Tracksperanto::Middleware::Scaler.new(@exporter, :y_factor => factor)
    super
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tracksperanto-2.8.6 lib/middleware/flop.rb
tracksperanto-2.8.5 lib/middleware/flop.rb
tracksperanto-2.8.4 lib/middleware/flop.rb
tracksperanto-2.8.2 lib/middleware/flop.rb
tracksperanto-2.8.1 lib/middleware/flop.rb
tracksperanto-2.8.0 lib/middleware/flop.rb
tracksperanto-2.7.0 lib/middleware/flop.rb
tracksperanto-2.6.3 lib/middleware/flop.rb
tracksperanto-2.6.2 lib/middleware/flop.rb
tracksperanto-2.6.1 lib/middleware/flop.rb
tracksperanto-2.6.0 lib/middleware/flop.rb
tracksperanto-2.5.0 lib/middleware/flop.rb
tracksperanto-2.4.1 lib/middleware/flop.rb
tracksperanto-2.3.3 lib/middleware/flop.rb
tracksperanto-2.3.2 lib/middleware/flop.rb
tracksperanto-2.3.1 lib/middleware/flop.rb
tracksperanto-2.3.0 lib/middleware/flop.rb
tracksperanto-2.2.4 lib/middleware/flop.rb
tracksperanto-2.2.2 lib/middleware/flop.rb
tracksperanto-2.2.0 lib/middleware/flop.rb