网站地图

冰敦敦-Python绘制代码

商务区 其它 版权:禁止匿名转载;禁止商业使用。

395 0 0 2022-02-09 举报

admin

网站管理员

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
冰敦敦-Python绘制代码  5379

  1. import turtle

  2. turtle.title('冰墩墩--2022北京冬奥')

  3. turtle.speed(100)  # 速度

  4. # 左手
  5. turtle.penup()
  6. turtle.goto(177, 112)
  7. turtle.pencolor("lightgray")
  8. turtle.pensize(3)
  9. turtle.fillcolor("white")
  10. turtle.begin_fill()
  11. turtle.pendown()
  12. turtle.setheading(80)
  13. turtle.circle(-45, 200)
  14. turtle.circle(-300, 23)
  15. turtle.end_fill()

  16. # 左手内
  17. turtle.penup()
  18. turtle.goto(182, 95)
  19. turtle.pencolor("black")
  20. turtle.pensize(1)
  21. turtle.fillcolor("black")
  22. turtle.begin_fill()
  23. turtle.setheading(95)
  24. turtle.pendown()
  25. turtle.circle(-37, 160)
  26. turtle.circle(-20, 50)
  27. turtle.circle(-200, 30)
  28. turtle.end_fill()
  29. # 轮廓
  30. # 头顶
  31. turtle.penup()
  32. turtle.goto(-73, 230)
  33. turtle.pencolor("lightgray")
  34. turtle.pensize(3)
  35. turtle.fillcolor("white")
  36. turtle.begin_fill()
  37. turtle.pendown()
  38. turtle.setheading(20)
  39. turtle.circle(-250, 35)
  40. # 左耳
  41. turtle.setheading(50)
  42. turtle.circle(-42, 180)
  43. # 左侧
  44. turtle.setheading(-50)
  45. turtle.circle(-190, 30)
  46. turtle.circle(-320, 45)
  47. # 左腿
  48. turtle.circle(120, 30)
  49. turtle.circle(200, 12)
  50. turtle.circle(-18, 85)
  51. turtle.circle(-180, 23)
  52. turtle.circle(-20, 110)
  53. turtle.circle(15, 115)
  54. turtle.circle(100, 12)
  55. # 右腿
  56. turtle.circle(15, 120)
  57. turtle.circle(-15, 110)
  58. turtle.circle(-150, 30)
  59. turtle.circle(-15, 70)
  60. turtle.circle(-150, 10)
  61. turtle.circle(200, 35)
  62. turtle.circle(-150, 20)
  63. # 右手
  64. turtle.setheading(-120)
  65. turtle.circle(50, 30)
  66. turtle.circle(-35, 200)
  67. turtle.circle(-300, 23)
  68. # 右侧
  69. turtle.setheading(86)
  70. turtle.circle(-300, 26)
  71. # 右耳
  72. turtle.setheading(122)
  73. turtle.circle(-53, 160)
  74. turtle.end_fill()

  75. # 右耳内
  76. turtle.penup()
  77. turtle.goto(-130, 180)
  78. turtle.pencolor("black")
  79. turtle.pensize(1)
  80. turtle.fillcolor("black")
  81. turtle.begin_fill()
  82. turtle.pendown()
  83. turtle.setheading(120)
  84. turtle.circle(-28, 160)
  85. turtle.setheading(210)
  86. turtle.circle(150, 20)
  87. turtle.end_fill()

  88. # 左耳内
  89. turtle.penup()
  90. turtle.goto(90, 230)
  91. turtle.setheading(40)
  92. turtle.begin_fill()
  93. turtle.pendown()
  94. turtle.circle(-30, 170)
  95. turtle.setheading(125)
  96. turtle.circle(150, 23)
  97. turtle.end_fill()

  98. # 右手内
  99. turtle.penup()
  100. turtle.goto(-180, -55)
  101. turtle.fillcolor("black")
  102. turtle.begin_fill()
  103. turtle.setheading(-120)
  104. turtle.pendown()
  105. turtle.circle(50, 30)
  106. turtle.circle(-27, 200)
  107. turtle.circle(-300, 20)
  108. turtle.setheading(-90)
  109. turtle.circle(300, 14)
  110. turtle.end_fill()

  111. # 左腿内
  112. turtle.penup()
  113. turtle.goto(108, -168)
  114. turtle.fillcolor("black")
  115. turtle.begin_fill()
  116. turtle.pendown()
  117. turtle.setheading(-115)
  118. turtle.circle(110, 15)
  119. turtle.circle(200, 10)
  120. turtle.circle(-18, 80)
  121. turtle.circle(-180, 13)
  122. turtle.circle(-20, 90)
  123. turtle.circle(15, 60)
  124. turtle.setheading(42)
  125. turtle.circle(-200, 29)
  126. turtle.end_fill()
  127. # 右腿内
  128. turtle.penup()
  129. turtle.goto(-38, -210)
  130. turtle.fillcolor("black")
  131. turtle.begin_fill()
  132. turtle.pendown()
  133. turtle.setheading(-155)
  134. turtle.circle(15, 100)
  135. turtle.circle(-10, 110)
  136. turtle.circle(-100, 30)
  137. turtle.circle(-15, 65)
  138. turtle.circle(-100, 10)
  139. turtle.circle(200, 15)
  140. turtle.setheading(-14)
  141. turtle.circle(-200, 27)
  142. turtle.end_fill()

  143. # 右眼
  144. # 眼圈
  145. turtle.penup()
  146. turtle.goto(-64, 120)
  147. turtle.begin_fill()
  148. turtle.pendown()
  149. turtle.setheading(40)
  150. turtle.circle(-35, 152)
  151. turtle.circle(-100, 50)
  152. turtle.circle(-35, 130)
  153. turtle.circle(-100, 50)
  154. turtle.end_fill()
  155. # 眼珠
  156. turtle.penup()
  157. turtle.goto(-47, 55)
  158. turtle.fillcolor("white")
  159. turtle.begin_fill()
  160. turtle.pendown()
  161. turtle.setheading(0)
  162. turtle.circle(25, 360)
  163. turtle.end_fill()
  164. turtle.penup()
  165. turtle.goto(-45, 62)
  166. turtle.pencolor("darkslategray")
  167. turtle.fillcolor("darkslategray")
  168. turtle.begin_fill()
  169. turtle.pendown()
  170. turtle.setheading(0)
  171. turtle.circle(19, 360)
  172. turtle.end_fill()
  173. turtle.penup()
  174. turtle.goto(-45, 68)
  175. turtle.fillcolor("black")
  176. turtle.begin_fill()
  177. turtle.pendown()
  178. turtle.setheading(0)
  179. turtle.circle(10, 360)
  180. turtle.end_fill()
  181. turtle.penup()
  182. turtle.goto(-47, 86)
  183. turtle.pencolor("white")
  184. turtle.fillcolor("white")
  185. turtle.begin_fill()
  186. turtle.pendown()
  187. turtle.setheading(0)
  188. turtle.circle(5, 360)
  189. turtle.end_fill()


复制代码
登录网站下载完整代码
请点击此处下载

查看状态:需购买或无权限

您的用户组是:游客

提取密码: 
下载次数:2  文件大小:1.34 KB 
下载权限: 注册会员 VIP会员   [购买VIP]   [充值]  [免费赚金币]



关闭

站长推荐上一条 /1 下一条

快速回复 客服中心 搜索 官方QQ群 问题反馈
11111
2222
3333
44444
55555
1111
5566644
拓者2020模型
UE4-室内VR设计教程
渲影、速度快、价格低
3dmax疯狂模渲大师-插件购买

艺术源于生活,而生活是艺术的来源,在生活中追求艺术让灵感自由释放,创造一个心灵渴望的空间。

  • Powered by Discuz! X3.4
  • © 2001-2017 联盟设计库
  • GMT+8, 2022-5-24 08:11 , Processed in 0.291216 second(s), 45 queries .

 关注联盟设计库

快速回复 返回顶部 返回列表