Sha256: c4418d7f52cc18208593b683f847e565dc499b5693eb0e3d1196be76c4694165

Contents?: true

Size: 306 Bytes

Versions: 23

Compression:

Stored size: 306 Bytes

Contents

# Flips the comp being exported horizontally
class Tracksperanto::Middleware::Flip < Tracksperanto::Middleware::Base

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tracksperanto-2.1.1 lib/middleware/flip.rb
tracksperanto-2.1.0 lib/middleware/flip.rb
tracksperanto-2.0.2 lib/middleware/flip.rb