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-1.7.5 lib/middleware/shift.rb
tracksperanto-1.7.4 lib/middleware/shift.rb
tracksperanto-1.7.3 lib/middleware/shift.rb
tracksperanto-1.7.2 lib/middleware/shift.rb
tracksperanto-1.7.1 lib/middleware/shift.rb
tracksperanto-1.7.0 lib/middleware/shift.rb
tracksperanto-1.6.9 lib/middleware/shift.rb
tracksperanto-1.6.8 lib/middleware/shift.rb
tracksperanto-1.6.7 lib/middleware/shift.rb
tracksperanto-1.6.6 lib/middleware/shift.rb
tracksperanto-1.6.5 lib/middleware/shift.rb
tracksperanto-1.6.4 lib/middleware/shift.rb
tracksperanto-1.6.3 lib/middleware/shift.rb
tracksperanto-1.6.2 lib/middleware/shift.rb
tracksperanto-1.6.1 lib/middleware/shift.rb
tracksperanto-1.6.0 lib/middleware/shift.rb
tracksperanto-1.5.7 lib/middleware/shift.rb
tracksperanto-1.5.6 lib/middleware/shift.rb
tracksperanto-1.5.5 lib/middleware/shift.rb
tracksperanto-1.5.4 lib/middleware/shift.rb