Sha256: 08df81079ef8149e2f4a771381a94ef5713ecd975ecdf5a9394ac67699daf2eb

Contents?: true

Size: 334 Bytes

Versions: 6

Compression:

Stored size: 334 Bytes

Contents

# -*- encoding : utf-8 -*-
# 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

6 entries across 6 versions & 1 rubygems

Version Path
tracksperanto-2.9.5 lib/middleware/flop.rb
tracksperanto-2.9.4 lib/middleware/flop.rb
tracksperanto-2.9.3 lib/middleware/flop.rb
tracksperanto-2.9.2 lib/middleware/flop.rb
tracksperanto-2.9.1 lib/middleware/flop.rb
tracksperanto-2.9.0 lib/middleware/flop.rb