#
import math
def decagon (x,y,s):
x1=x
y1=int(y+3.077*s)
x2=int(x+1.9021*s)
y2=int(y+2.459*s)
x3=int(x+2.911*s)
y3=int(y+s)
x4=x3
y4=int(y-s)
x5=x2
y5=int(y-2.459*s)
x6=x1
y6=int(y-3.077*s)
x7=int(x-1.9021*s)
y7=y5
x8=int(x-2.911*s)
y8=y4
x9=x8
y9=y3
x10=x7
y10=y2
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)
while 1:
g.paper (13)
g.pen (100)
m1=g.getMouse (1)
m2=g.getMouse (2)
MM=m1*m2/400
decagon (30,19,MM)
-gary escudero