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.5.3 lib/middleware/shift.rb
tracksperanto-1.5.2 lib/middleware/shift.rb
tracksperanto-1.5.1 lib/middleware/shift.rb
tracksperanto-1.5.0 lib/middleware/shift.rb
tracksperanto-1.4.0 lib/middleware/shift.rb
tracksperanto-1.2.6 lib/middleware/shift.rb
tracksperanto-1.3.1 lib/middleware/shift.rb
tracksperanto-1.3.0 lib/middleware/shift.rb
tracksperanto-1.2.4 lib/middleware/shift.rb
tracksperanto-1.2.3 lib/middleware/shift.rb
tracksperanto-1.2.2 lib/middleware/shift.rb
tracksperanto-1.2.1 lib/middleware/shift.rb
tracksperanto-1.2.0 lib/middleware/shift.rb