projects
/
flexagon-toolkit.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inkscape-tetraflexagon-editor.svg: update the tetraflexagon example
[flexagon-toolkit.git]
/
src
/
svg_hexaflexagon_editor.py
diff --git
a/src/svg_hexaflexagon_editor.py
b/src/svg_hexaflexagon_editor.py
index
f86ad13
..
48c8646
100755
(executable)
--- 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 <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from math import pi
import svgwrite
from diagram.svgwrite_diagram import SvgwriteDiagram
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]
# 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
self.backend.active_group = old_active_group
# Add folding guides