Advertisement
wanTH092

something

Sep 21st, 2020
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. import turtle
  2. t=turtle.Turtle()
  3. t.speed(1)
  4. #FIRST SQUARE
  5. t.fillcolor("lime green")
  6. t.begin_fill()
  7. t.forward(100)
  8. t.left(90)
  9. t.forward(100)
  10. t.left(90)
  11. t.forward(100)
  12. t.left(90)
  13. t.forward(100)
  14. t.end_fill()
  15. #SECOND SQUARE
  16. t.fillcolor("red")
  17. t.begin_fill()
  18. t.forward(100)
  19. t.right(90)
  20. t.forward(100)
  21. t.right(90)
  22. t.forward(100)
  23. t.right(90)
  24. t.forward(100)
  25. t.end_fill()
  26. #FIRST CIRCLE
  27. t.fillcolor("orange")
  28. t.up()
  29. t.right(90)
  30. t.forward(100)
  31. t.left(90)
  32. t.forward(50)
  33. t.down()
  34. t.begin_fill()
  35. t.circle(50)
  36. t.end_fill()
  37. #SECOND CIRCLE
  38. t.fillcolor("cyan")
  39. t.up()
  40. t.right(180)
  41. t.forward(50)
  42. t.right(90)
  43. t.forward(100)
  44. t.left(90)
  45. t.forward(50)
  46. t.left(180)
  47. t.down()
  48. t.begin_fill()
  49. t.circle(50)
  50. t.end_fill()
  51.  
  52. #ORANGE'S EARS/FACES
  53. t.fillcolor("lime green")
  54. t.up()
  55. t.forward(50)
  56. t.left(90)
  57. t.forward(100)
  58. t.right(45)
  59. t.down()
  60. t.begin_fill()
  61. t.forward(35)
  62. t.right(90)
  63. t.forward(35)
  64. t.end_fill()
  65.  
  66. t.begin_fill()
  67. t.left(90)
  68. t.forward(35)
  69. t.right(90)
  70. t.forward(35)
  71. t.end_fill()
  72.  
  73. t.right(45)
  74. t.up()
  75. t.forward(20)
  76. t.right(90)
  77. t.forward(15)
  78. t.down()
  79.  
  80. #ORANGE'S EYES&MOUTH
  81. t.fillcolor("green")
  82. t.begin_fill()
  83. t.forward(25)
  84. t.left(90)
  85. t.forward(10)
  86. t.left(90)
  87. t.forward(25)
  88. t.left(90)
  89. t.forward(10)
  90. t.end_fill()
  91.  
  92. t.up()
  93. t.left(90)
  94. t.forward(40)
  95. t.down()
  96. t.begin_fill()
  97. t.forward(25)
  98. t.left(90)
  99. t.forward(10)
  100. t.left(90)
  101. t.forward(25)
  102. t.left(90)
  103. t.forward(10)
  104. t.end_fill()
  105.  
  106. t.up()
  107. t.left(90)
  108. t.forward(45)
  109. t.left(90)
  110. t.forward(60)
  111.  
  112. t.left(90)
  113. t.forward(27.5)
  114. t.down()
  115. t.begin_fill()
  116. t.left(30)
  117. t.forward(30)
  118. t.right(60)
  119. t.forward(30)
  120. t.end_fill()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement