miércoles, 8 de febrero de 2012

tercer ejercicio de turtle con python "la casita"













from turtle import*
speed(20)
pensize(2)
#primer paso
fd(100)
lt(120)
fd(100)
lt(120)
fd(100)
rt(60)
fd(20)
lt(90)
fd(100)
lt(90)
fd(140)
lt(90)
fd(100)
lt(90)
fd(20)
#ventanas
pensize(1)
pu()
lt(90)
fd(40)
pd()
fd(20)
lt(90)
fd(20)
lt(135)
fd(30)
rt(135)
fd(20)
rt(135)
fd(30)
rt(45)
pu()
fd(98)
pd()
fd(20)
rt(135)
fd(30)
rt(135)
fd(20)
rt(135)
fd(30)
rt(135)
fd(20)
#fin
done()

No hay comentarios:

Publicar un comentario