while True:
if n==1:
n=0
else:
n=n+1
begin_fill()
a=c
b=100
fillcolor(colorName[n])
forward(100)
dir1=pos()
goto(dir)
c=(c ** 2+10000) ** 0.5
end_fill()
A = math.degrees(math.acos((a * a - b * b - c * c) / (-2 * b * c)))
B = math.degrees(math.acos((b * b - a * a - c * c) / (-2 * a * c)))
C = math.degrees(math.acos((c * c - a * a - b * b) / (-2 * a * b)))
left(90-A)
goto(dir1)