Sha256: 7a058f517798d61793f1ed4ff282139919aa03f627cd194f78c9b6492a7fe21e

Contents?: true

Size: 395 Bytes

Versions: 6

Compression:

Stored size: 395 Bytes

Contents

# -*- encoding : utf-8 -*-
# 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

6 entries across 6 versions & 1 rubygems

Version Path
tracksperanto-2.9.5 lib/middleware/shift.rb
tracksperanto-2.9.4 lib/middleware/shift.rb
tracksperanto-2.9.3 lib/middleware/shift.rb
tracksperanto-2.9.2 lib/middleware/shift.rb
tracksperanto-2.9.1 lib/middleware/shift.rb
tracksperanto-2.9.0 lib/middleware/shift.rb