X-Git-Url: https://git.ao2.it/flexagon-toolkit.git/blobdiff_plain/0535503e3f96e135b9a478df1a9ea8ef7fd206d5..5f2e900515a64fe483569855b89f26abcc89a441:/src/svg_hexaflexagon_editor.py diff --git a/src/svg_hexaflexagon_editor.py b/src/svg_hexaflexagon_editor.py index f86ad13..48c8646 100755 --- a/src/svg_hexaflexagon_editor.py +++ b/src/svg_hexaflexagon_editor.py @@ -17,7 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from math import pi import svgwrite from diagram.svgwrite_diagram import SvgwriteDiagram @@ -61,7 +60,7 @@ class SvgwriteHexaflexagonDiagram(HexaflexagonDiagram): # Draw some default content old_active_group = self.backend.active_group self.backend.active_group = self.groups["hexagon%d-content" % hexagon.index] - self.backend.draw_regular_polygon(cx, cy, 6, self.hexagon_radius, pi / 6., fill_color=(0.5, 0.5, 0.5, 0.2), stroke_color=None) + self.backend.draw_regular_polygon(cx, cy, 6, self.hexagon_radius, fill_color=(0.5, 0.5, 0.5, 0.2), stroke_color=None) self.backend.active_group = old_active_group # Add folding guides