Sha256: bdb8f680f59654229fd7467c138d3d5e2a45d92e0690ce5cbebfc99c355b2fdd

Contents?: true

Size: 367 Bytes

Versions: 18

Compression:

Stored size: 367 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.to_f, float_y + @y_shift.to_f, float_residual)
  end
  
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
tracksperanto-2.8.6 lib/middleware/shift.rb
tracksperanto-2.8.5 lib/middleware/shift.rb
tracksperanto-2.8.4 lib/middleware/shift.rb
tracksperanto-2.8.2 lib/middleware/shift.rb
tracksperanto-2.8.1 lib/middleware/shift.rb
tracksperanto-2.8.0 lib/middleware/shift.rb
tracksperanto-2.7.0 lib/middleware/shift.rb
tracksperanto-2.6.3 lib/middleware/shift.rb
tracksperanto-2.6.2 lib/middleware/shift.rb
tracksperanto-2.6.1 lib/middleware/shift.rb
tracksperanto-2.6.0 lib/middleware/shift.rb
tracksperanto-2.5.0 lib/middleware/shift.rb
tracksperanto-2.4.1 lib/middleware/shift.rb
tracksperanto-2.3.3 lib/middleware/shift.rb
tracksperanto-2.3.2 lib/middleware/shift.rb
tracksperanto-2.3.1 lib/middleware/shift.rb
tracksperanto-2.3.0 lib/middleware/shift.rb
tracksperanto-2.2.4 lib/middleware/shift.rb