##okhan 3/6/00
##5C
##springy point to 10 sided shape

g.antialias(1)

while 1:
   def poly (x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x6,
            y6, x7, y7, x8, y8, x9, y9, x10, y10):
   
      g.line (x1, y1, x2, y2)
      g.line (x2, y2, x3, y3)
      g.line (x3, y3, x4, y4)
      g.line (x4, y4, x5, y5)
      g.line (x5, y5, x6, y6)
      g.line (x6, y6, x7, y7)
      g.line (x7, y7, x8, y8)
      g.line (x8, y8, x9, y9)
      g.line (x9, y9, x10, y10)
      g.line (x10, y10, x1, y1)
  
  

   for x in range(0, 1):
     
         Ax= g.getMouse(1)
         Ay= g.getMouse(2)
         Bx= 98
         By= 2
         Cx= (75+Ax/4)
         Cy= (6*Ay/5)
         Dx= (49+Ax/2)
         Dy= (2*Ay/3)
         Ex= (81+Ax/6)
         Ey= (Ay/2)
         Fx= (66+Ax/3)
         Fy= (3*Ay/2)
         Gx= (49+Ax/2)
         Gy= (3*Ay/2)
         Hx= (32+2*Ax/3)
         Hy= (Ay)
         Ix= (66+Ax/3)
         Iy= (3*Ay/4)
         Jx= (49+Ax/2)
         Jy= (2*Ay)

         g.paper (100)
         g.pen (0)
         poly (Ax, Ay, Bx, By, Cx, Cy, Dx, Dy, Ex, Ey, Fx, Fy, Gx, Gy, 
              Hx, Hy, Ix, Iy, Jx, Jy)