Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- #Instanciar
- tortuga = turtle
- tortuga.setup(800,600,0,0)
- tortuga.screensize(800,600)
- tortuga.title("Espacio de trabajo")
- tortuga.showturtle()
- tortuga.color("red")
- tortuga.forward(200)
- tortuga.lt(120)
- tortuga.forward(100)
- tortuga.color("blue")
- tortuga.lt(40)
- tortuga.backward(200)
- tortuga.color("green")
- tortuga.circle(100)
- tortuga.home()
- color = ["red","orange","blue","red","yellow"]
- for i in range(0,18):
- sel = i%5
- tortuga.color(color[sel])
- tortuga.lt(20)
- tortuga.forward(50)
- tortuga.lt(30)
- tortuga.forward(40)
- tortuga.rt(30)
- tortuga.backward(40)
- tortuga.circle(5)
- tortuga.color("black")
- tortuga.rt(60)
- for i in range(0,5):
- tortuga.penup()
- x = tortuga.xcor()
- y = tortuga.ycor()
- tortuga.forward(50)
- tortuga.pendown()
- tortuga.goto(x+10,y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement