Noch mehr Bl├╝ten (im Vier-Seiten-Blumen-Fall)
authorJoachim Breitner <mail@joachim-breitner.de>
Wed, 2 May 2007 20:44:48 +0000 (20:44 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Wed, 2 May 2007 20:44:48 +0000 (20:44 +0000)
grasstheme.py

index 5a683ed..9b2eac1 100644 (file)
@@ -224,10 +224,13 @@ class GrassCard(CairoCard):
                 cr.translate(*p2c[dir])
                 self.draw_flower(cr)
                 cr.set_matrix(matrix)
-            for dir in island[:-1]:
-                cr.translate(*between_p2c[dir])
+            for dir in island:
+                if (dir+1)%4 in island:
+                    cr.translate(*between_p2c[dir])
+                    self.draw_flower(cr)
+                    cr.set_matrix(matrix)
+            if len(island) == 4:
                 self.draw_flower(cr)
-                cr.set_matrix(matrix)
 
     #Einen Grashalm malen
     def draw_gras(self, cr, orientation):