tix
authorFrank DeMarco <frank.s.demarco@gmail.com>
Fri, 25 Apr 2014 18:13:04 +0000 (03:13 +0900)
committerFrank DeMarco <frank.s.demarco@gmail.com>
Fri, 25 Apr 2014 18:13:04 +0000 (03:13 +0900)
config
scale_sieve/ScaleSieve.py

diff --git a/config b/config
index 58fdae7..f2bb5d6 100644 (file)
--- a/config
+++ b/config
@@ -5,4 +5,4 @@ dimensions = 420, 700
 quit = K_ESCAPE
 
 [interpolate]
-scale = C 0 10, 680 20, 1000 40
+scale = C 0 10, 1000 80
index cb0c3b3..4716edd 100644 (file)
@@ -53,5 +53,13 @@ class Sieve(Strip):
                 pixel_arrays[1][x][y] = background_colors[(y + x + 1) % 2]
         for pixels in pixel_arrays:
             del pixels
+        x = 0
+        nodeset = self.get_game().interpolator.get_nodeset("scale")
+        while x < surface.get_width():
+            for ii, frame in enumerate(frames):
+                frame.fill(divider_colors[ii], (x, 0, 3, surface.get_height()))
+                frame.fill(divider_colors[ii - 1], (x + 1, 1, 1,
+                                                    surface.get_height() - 2))
+            x += nodeset.get_y(x)
         for frame in frames:
             self.add_frame(frame)