import simplegui
from math import cos, sin, radians

def draw(canvas):
    size = 100
    pos = (300,300)
    canvas.draw_polygon(
        [(cos(radians(30))*size+pos[0],sin(radians(30))*size+pos[1]),
         (cos(radians(90))*size+pos[0],sin(radians(90))*size+pos[1]),
         (cos(radians(150))*size+pos[0],sin(radians(150))*size+pos[1]),
         (cos(radians(210))*size+pos[0],sin(radians(210))*size+pos[1]),
         (cos(radians(270))*size+pos[0],sin(radians(270))*size+pos[1]),
         (cos(radians(330))*size+pos[0],sin(radians(330))*size+pos[1])],
         1,
         'Red',
         'Blue'
        )
#(cos(330)*size+pos[0],sin(330)*size+pos[1])], 
frame = simplegui.create_frame("Home", 500, 500)
frame.set_draw_handler(draw)
frame.start()

@@ -99,16 +99,92 @@
 00,300)%0A
+    FLAT_TOPPED = 0%0A    POINTY_TOPPED = 30%0A    %0A    arc_pos = POINTY_TOPPED%0A
     canv
@@ -214,34 +214,39 @@
   %5B(cos(radians(
-30
+arc_pos
 ))*size+pos%5B0%5D,s
@@ -256,18 +256,23 @@
 radians(
-30
+arc_pos
 ))*size+
@@ -294,33 +294,43 @@
    (cos(radians(
-9
+arc_pos + 6
 0))*size+pos%5B0%5D,
@@ -345,9 +345,19 @@
 ans(
-9
+arc_pos + 6
 0))*
@@ -384,34 +384,45 @@
    (cos(radians(
-15
+arc_pos + 2*6
 0))*size+pos%5B0%5D,
@@ -437,10 +437,21 @@
 ans(
-15
+arc_pos + 2*6
 0))*
@@ -478,34 +478,45 @@
    (cos(radians(
-21
+arc_pos + 3*6
 0))*size+pos%5B0%5D,
@@ -531,10 +531,21 @@
 ans(
-21
+arc_pos + 3*6
 0))*
@@ -572,34 +572,45 @@
    (cos(radians(
-27
+arc_pos + 4*6
 0))*size+pos%5B0%5D,
@@ -625,10 +625,21 @@
 ans(
-27
+arc_pos + 4*6
 0))*
@@ -666,34 +666,45 @@
    (cos(radians(
-33
+arc_pos + 5*6
 0))*size+pos%5B0%5D,
@@ -715,18 +715,29 @@
 radians(
-33
+arc_pos + 5*6
 0))*size

Update brute_force_hexagon.py