examples/nested.rb in interpolate-0.2.3 vs examples/nested.rb in interpolate-0.2.4
- old
+ new
@@ -1,11 +1,11 @@
require 'rubygems'
require 'interpolate'
require 'pp'
-# a non-linear set of 2D vertexes;
-# the shape changes at each frame
+# a number of sets 2D vertices, each set corresponding to a particular
+# shape on the grid
time_frames = {
0 => [[0, 0], [1, 0], [2, 0], [3, 0], [4, 0]], # a horizontal line
1 => [[0, 0], [1, 0], [3, 0], [0, 4], [0, 0]], # a triangle
2 => [[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]], # a square
3 => [[0, 0], [1, 0], [2, 0], [3, 0], [4, 0]], # a horizontal line, again