X-Git-Url: https://git.ao2.it/flexagon-toolkit.git/blobdiff_plain/d7db3a7d7112d2bf77c96d0f027bf0e00ab15215..382e2be48ae8f3914bb443f27f5091c730095e6c:/src/svg_tetraflexagon_editor.py diff --git a/src/svg_tetraflexagon_editor.py b/src/svg_tetraflexagon_editor.py index ce2794b..6b57160 100755 --- a/src/svg_tetraflexagon_editor.py +++ b/src/svg_tetraflexagon_editor.py @@ -63,8 +63,6 @@ class SvgwriteTetraflexagonDiagram(TetraflexagonDiagram): fill_color=(0.5, 0.5, 0.5, 0.2)) self.backend.active_group = old_active_group - self.backend.active_group = old_active_group - # Draw the normal template for squares for square in self.tetraflexagon.squares: self.draw_square_template(square) @@ -99,7 +97,7 @@ class SvgwriteTetraflexagonDiagram(TetraflexagonDiagram): super(SvgwriteTetraflexagonDiagram, self).draw_tile_template(tile, cx, cy, theta) - # The tile outline in the active group's element is the only polygon + # The tile outline in the active group's element is the only rectangle # element, so get it and set its id so that it can be reused as # a clip-path for element in self.backend.active_group.elements: @@ -114,6 +112,7 @@ class SvgwriteTetraflexagonDiagram(TetraflexagonDiagram): self.backend.active_group = old_active_group + def main(): width = 3508 height = 2480