cardel

G29 Tortuga 1

Jun 14th, 2021
646
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import turtle
  2.  
  3. tortuga = turtle
  4. tortuga.setup(800,800,0,0)
  5. tortuga.screensize(800,800)
  6. tortuga.showturtle()
  7.  
  8. tortuga.forward(200)
  9. tortuga.left(60)
  10. tortuga.forward(200)
  11. tortuga.left(80)
  12. tortuga.color("red")
  13. tortuga.forward(100)
  14. tortuga.penup()
  15. tortuga.forward(200)
  16. tortuga.left(100)
  17. tortuga.pendown()
  18. tortuga.forward(100)
  19. tortuga.penup()
  20. tortuga.goto(-100,-100)
  21. tortuga.pendown()
  22.  
  23. tortuga.begin_fill()
  24. tortuga.color("blue")
  25. tortuga.penup()
  26. tortuga.goto(200,200)
  27. tortuga.pendown()
  28. tortuga.goto(200,-200)
  29. tortuga.goto(0,-200)
  30. tortuga.goto(0,200)
  31. tortuga.goto(200,200)
  32. tortuga.end_fill()
  33.  
  34. tortuga.mainloop()
  35.  
RAW Paste Data