Sha256: f33b9013eb0fddb3b4429b7b218f5b74a964268aa5fb5ee752e426a30c9c7cd6
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
# Flips the comp being exported horizontally or vertically class Tracksperanto::Middleware::Flip < Tracksperanto::Middleware::Base attr_accessor :flip, :flop def start_export(w, h) @w, @h = w, h super end def export_point(frame, float_x, float_y, float_residual) x = @flip ? (@w - float_x) : float_x y = @flop ? (@h - float_y) : float_y super(frame, x, y, float_residual) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracksperanto-1.9.9 | lib/middleware/flip.rb |
tracksperanto-1.9.8 | lib/middleware/flip.rb |