Sha256: 76d3b674a0e0c3ef688951d9deecc0429635440e7c0986bc6eeb1d1300a4e339

Contents?: true

Size: 334 Bytes

Versions: 6

Compression:

Stored size: 334 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

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