Sha256: fb5c0df3a7b3f3651a296d6eeed5caaa470755f35c17cb98b4524e41ce00a981

Contents?: true

Size: 371 Bytes

Versions: 53

Compression:

Stored size: 371 Bytes

Contents

# This middleware moves the keyframs by a preset number of pixels
class Tracksperanto::Middleware::Shift < Tracksperanto::Middleware::Base
  attr_accessor :x_shift, :y_shift
  cast_to_float :x_shift, :y_shift
  
  def export_point(frame, float_x, float_y, float_residual)
    super(frame, float_x + (@x_shift || 0), float_y + (@y_shift || 0), float_residual)
  end
  
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
tracksperanto-2.2.2 lib/middleware/shift.rb
tracksperanto-2.2.0 lib/middleware/shift.rb
tracksperanto-2.1.1 lib/middleware/shift.rb
tracksperanto-2.1.0 lib/middleware/shift.rb
tracksperanto-2.0.2 lib/middleware/shift.rb
tracksperanto-2.0.1 lib/middleware/shift.rb
tracksperanto-2.0.0 lib/middleware/shift.rb
tracksperanto-1.9.9 lib/middleware/shift.rb
tracksperanto-1.9.8 lib/middleware/shift.rb
tracksperanto-1.9.6 lib/middleware/shift.rb
tracksperanto-1.9.5 lib/middleware/shift.rb
tracksperanto-1.9.4 lib/middleware/shift.rb
tracksperanto-1.9.3 lib/middleware/shift.rb
tracksperanto-1.9.2 lib/middleware/shift.rb
tracksperanto-1.9.1 lib/middleware/shift.rb
tracksperanto-1.9.0 lib/middleware/shift.rb
tracksperanto-1.8.4 lib/middleware/shift.rb
tracksperanto-1.8.2 lib/middleware/shift.rb
tracksperanto-1.8.1 lib/middleware/shift.rb
tracksperanto-1.8.0 lib/middleware/shift.rb