# 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
# 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