examples/arrays.rb in interpolate-0.2.4 vs examples/arrays.rb in interpolate-0.3.0

- old
+ new

@@ -13,12 +13,12 @@ 4 => [3, 0, 1], 5 => [1, 2, 3], 6 => [0, 0, 0] } -path = Interpolation.new(time_frames) +path = Interpolate::Points.new(time_frames) -# play the actors positions in time increments of 0.25 +# play the actor's positions in time increments of 0.25 (0).step(6, 0.25) do |time| position = path.at(time) puts ">> At #{time}s, actor is at:" p position end