当前位置:   article > 正文

如何用python画动漫人物,用python画一个美女_python画二次元人物

python画二次元人物

本篇文章给大家谈谈python画动漫人物代码 星空,以及如何用python画动漫人物,希望对各位有所帮助,不要忘了收藏本站喔。

前言

大家早好、午好、晚好吖 ❤ ~

对于上面漫小姐姐图,大家觉得好不好看呢


这种极简的线条画出超具魅力的小姐姐图

简直不要太击中小心脏

接下来,我们就用python来实现一下,画出一个好看的少女~

代码展示

导入模块

  1. import turtle as te
  2. import time
  1. WriteStep = 15 # 贝塞尔函数的取样次数
  2. Speed = 5
  3. Width = 600 # 界面宽度
  4. Height = 500 # 界面高度
  5. Xh = 0 # 记录前一个贝塞尔函数的手柄
  6. Yh = 0
  7. def Bezier(p1, p2, t): # 一阶贝塞尔函数
  8. return p1 * (1 - t) + p2 * t
  9. def Bezier_2(x1, y1, x2, y2, x3, y3): # 二阶贝塞尔函数
  10. te.goto(x1, y1)
  11. te.pendown()
  12. for t in range(0, WriteStep + 1):
  13. x = Bezier(Bezier(x1, x2, t / WriteStep),
  14. Bezier(x2, x3, t / WriteStep), t / WriteStep)
  15. y = Bezier(Bezier(y1, y2, t / WriteStep),
  16. Bezier(y2, y3, t / WriteStep), t / WriteStep)
  17. te.goto(x, y)
  18. te.penup()
  19. def Bezier_3(x1, y1, x2, y2, x3, y3, x4, y4): # 三阶贝塞尔函数
  20. x1 = -Width / 2 + x1
  21. y1 = Height / 2 - y1
  22. x2 = -Width / 2 + x2
  23. y2 = Height / 2 - y2
  24. x3 = -Width / 2 + x3
  25. y3 = Height / 2 - y3
  26. x4 = -Width / 2 + x4
  27. y4 = Height / 2 - y4 # 坐标变换
  28. te.goto(x1, y1)
  29. te.pendown()
  30. for t in range(0, WriteStep + 1):
  31. x = Bezier(Bezier(Bezier(x1, x2, t / WriteStep), Bezier(x2, x3, t / WriteStep), t / WriteStep),
  32. Bezier(Bezier(x2, x3, t / WriteStep), Bezier(x3, x4, t / WriteStep), t / WriteStep), t / WriteStep)
  33. y = Bezier(Bezier(Bezier(y1, y2, t / WriteStep), Bezier(y2, y3, t / WriteStep), t / WriteStep),
  34. Bezier(Bezier(y2, y3, t / WriteStep), Bezier(y3, y4, t / WriteStep), t / WriteStep), t / WriteStep)
  35. te.goto(x, y)
  36. te.penup()
  37. def Moveto(x, y): # 移动到svg坐标下(x,y)
  38. te.penup()
  39. te.goto(-Width / 2 + x, Height / 2 - y)
  40. def line(x1, y1, x2, y2): # 连接svg坐标下两点
  41. te.penup()
  42. te.goto(-Width / 2 + x1, Height / 2 - y1)
  43. te.pendown()
  44. te.goto(-Width / 2 + x2, Height / 2 - y2)
  45. te.penup()
  46. 源码、解答、资源、学习交流可加企鹅裙:261823976##
  47. def lineto(dx, dy): # 连接当前点和相对坐标(dx,dy)的点
  48. te.pendown()
  49. te.goto(te.xcor() + dx, te.ycor() - dy)
  50. te.penup()
  51. def Lineto(x, y): # 连接当前点和svg坐标下(x,y)
  52. te.pendown()
  53. te.goto(-Width / 2 + x, Height / 2 - y)
  54. te.penup()
  55. def Horizontal(x): # 做到svg坐标下横坐标为x的水平线
  56. te.pendown()
  57. te.setx(x - Width / 2)
  58. te.penup()
  59. def horizontal(dx): # 做到相对横坐标为dx的水平线
  60. te.seth(0)
  61. te.pendown()
  62. te.fd(dx)
  63. te.penup()
  64. def vertical(dy): # 做到相对纵坐标为dy的垂直线
  65. te.seth(-90)
  66. te.pendown()
  67. te.fd(dy)
  68. te.penup()
  69. te.seth(0)
  70. def polyline(x1, y1, x2, y2, x3, y3): # 做svg坐标下的折线
  71. te.penup()
  72. te.goto(-Width / 2 + x1, Height / 2 - y1)
  73. te.pendown()
  74. te.goto(-Width / 2 + x2, Height / 2 - y2)
  75. te.goto(-Width / 2 + x3, Height / 2 - y3)
  76. te.penup()
  77. def Curveto(x1, y1, x2, y2, x, y): # 三阶贝塞尔曲线到(x,y)
  78. te.penup()
  79. X_now = te.xcor() + Width / 2
  80. Y_now = Height / 2 - te.ycor()
  81. Bezier_3(X_now, Y_now, x1, y1, x2, y2, x, y)
  82. global Xh
  83. global Yh
  84. Xh = x - x2
  85. Yh = y - y2
  86. def curveto_r(x1, y1, x2, y2, x, y): # 三阶贝塞尔曲线到相对坐标(x,y)
  87. te.penup()
  88. X_now = te.xcor() + Width / 2
  89. Y_now = Height / 2 - te.ycor()
  90. Bezier_3(X_now, Y_now, X_now + x1, Y_now + y1,
  91. X_now + x2, Y_now + y2, X_now + x, Y_now + y)
  92. global Xh
  93. global Yh
  94. Xh = x - x2
  95. Yh = y - y2
  96. def Smooth(x2, y2, x, y): # 平滑三阶贝塞尔曲线到(x,y)
  97. global Xh
  98. global Yh
  99. te.penup()
  100. X_now = te.xcor() + Width / 2
  101. Y_now = Height / 2 - te.ycor()
  102. Bezier_3(X_now, Y_now, X_now + Xh, Y_now + Yh, x2, y2, x, y)
  103. Xh = x - x2
  104. Yh = y - y2
  105. def smooth_r(x2, y2, x, y): # 平滑三阶贝塞尔曲线到相对坐标(x,y)
  106. global Xh
  107. global Yh
  108. te.penup()
  109. X_now = te.xcor() + Width / 2
  110. Y_now = Height / 2 - te.ycor()
  111. Bezier_3(X_now, Y_now, X_now + Xh, Y_now + Yh,
  112. X_now + x2, Y_now + y2, X_now + x, Y_now + y)
  113. Xh = x - x2
  114. Yh = y - y2
  115. te.tracer(10)
  116. te.setup(Width, Height, 0, 0)
  117. te.pensize(1)
  118. te.speed(Speed)
  119. te.penup()
  120. # 图层_2
  121. time.sleep(20)
  122. te.color("black", "#F2F2F2") # 外套
  123. Moveto(61, 462)
  124. te.begin_fill()
  125. smooth_r(12, -41, 27, -58)
  126. curveto_r(-6, -36, 6, -118, 9, -132)
  127. curveto_r(-15, -27, -23, -51, -26, -74)
  128. curveto_r(4, -66, 38, -105, 65, -149)
  129. Horizontal(486)
  130. curveto_r(12, 24, 40, 99, 33, 114)
  131. curveto_r(39, 82, 55, 129, 39, 144)
  132. smooth_r(-31, 23, -39, 28)
  133. smooth_r(-12, 37, -12, 37)
  134. lineto(50, 92)
  135. Horizontal(445)
  136. smooth_r(-29, -38, -31, -46)
  137. smooth_r(78, -107, 72, -119)
  138. Smooth(355, 178, 340, 176)
  139. Smooth(272, 63, 264, 64)
  140. smooth_r(-29, 67, -27, 73)
  141. Curveto(99, 292, 174, 428, 173, 439)
  142. smooth_r(-8, 23, -8, 23)
  143. Lineto(61, 462)
  144. te.end_fill()
  145. Moveto(60.5, 461.5) # 阴影
  146. te.color("black", "#D3DFF0")
  147. te.begin_fill()
  148. curveto_r(0, 0, 17, -42, 27, -59)
  149. curveto_r(-6, -33, 6, -128, 10, -133)
  150. curveto_r(-15, -10, -27, -66, -27.285, -75)
  151. te.pencolor("#D3DFF0")
  152. curveto_r(12.285, 11, 82.963, 156, 82.963, 156)
  153. te.pencolor("black")
  154. smooth_r(12.322, 75, 19.322, 86)
  155. curveto_r(-1, 11, -8, 25, -8, 25)
  156. Horizontal(60.5)
  157. te.end_fill()
  158. Moveto(444.5, 464)
  159. te.begin_fill()
  160. curveto_r(0, 0, -29, -36, -31, -46)
  161. smooth_r(53.59, -82.337, 53.59, -82.337)
  162. te.pencolor("#D3DFF0")
  163. smooth_r(86.41, -47.663, 96.072, -54.85)
  164. Curveto(563.5, 297.5, 570.5, 299.5, 518.5, 334)
  165. te.pencolor("black")
  166. curveto_r(-2, 16, -12, 33, -12, 37)
  167. smooth_r(50, 92, 50, 93)
  168. Horizontal(444.5)
  169. te.end_fill()
  170. Moveto(195, 49)
  171. te.begin_fill()
  172. te.pencolor("#D3DFF0")
  173. polyline(195, 49, 175.5, 106.5, 202.522, 49)
  174. te.pencolor("black")
  175. Horizontal(195)
  176. te.pencolor("#D3DFF0")
  177. te.end_fill()
  178. Moveto(327.997, 49)
  179. te.begin_fill()
  180. te.pencolor("#D3DFF0")
  181. curveto_r(0, 0, 11.503, 121.087, 13.503, 128.087)
  182. curveto_r(11, 2, 54, 37, 54, 37)
  183. lineto(-40, -165.087)
  184. te.pencolor("black")
  185. Horizontal(327.997)
  186. te.pencolor("#D3DFF0")
  187. te.end_fill()
  188. te.pencolor("black")
  189. line(94.5, 397.5, 107.5, 373.5) # 皱纹
  190. line(122.5, 317.5, 95.875, 274.699)
  191. line(122.5, 341.5, 141.5, 402.5)
  192. line(141.5, 409.5, 153.5, 431.5)
  193. # line(328,47.712,344,175.977)
  194. line(340.023, 49, 360.5, 144)
  195. # line(353.5,47.5,395.5,208.5)
  196. line(478.5, 95.5, 518.5, 161.5)
  197. line(518.5, 332.5, 460.5, 359.5)
  198. polyline(506.5, 369.5, 493.5, 402.5, 502.5, 443.5)
  199. Moveto(530, 429)
  200. curveto_r(4, 16, -5, 33, -5, 33)
  201. # 图层_3
  202. te.color("black", "#2b1d2a") # 外套内侧
  203. Moveto(225, 462)
  204. te.begin_fill()
  205. Horizontal(165)
  206. smooth_r(9, -15, 8, -25)
  207. curveto_r(-47, -126, 6, -212, 12, -225)
  208. Curveto(185, 305, 202, 428, 225, 462)
  209. Lineto(225, 462)
  210. te.end_fill()
  211. Moveto(390, 462)
  212. te.begin_fill()
  213. curveto_r(10, -23, 34, -180, 35, -222) # !!!227
  214. curveto_r(7, 4, 54, 45, 61, 61) # 61
  215. smooth_r(-73, 101, -72, 118)
  216. curveto_r(5, 15, 31, 46, 31, 45)
  217. Lineto(390, 462)
  218. te.end_fill()
  219. # 图层_4
  220. te.color("black", "#2b1d29") # 外套内侧
  221. Moveto(225, 462)
  222. te.begin_fill()
  223. curveto_r(-28, -50, -40, -166, -40, -250)
  224. curveto_r(6, 51, -6, 87, 45, 106)
  225. smooth_r(64, 27, 89, 24)
  226. smooth_r(49, -18, 56, -20)
  227. smooth_r(50, -10, 51, -85)
  228. curveto_r(0, 29, -25, 201, -36, 225)
  229. Lineto(225, 462)
  230. te.end_fill()
  231. # 图层_5
  232. te.color("black", "#3D3D3D") # 衣服
  233. Moveto(225, 462)
  234. te.begin_fill()
  235. curveto_r(-5, -5, -22, -53, -23, -70)
  236. lineto(32, -13)
  237. curveto_r(3, -25, 6, -28, 12, -36)
  238. smooth_r(13, -12, 16, -12)
  239. vertical(-2)
  240. curveto_r(45, 20, 64, 14, 94, 1)
  241. vertical(2)
  242. curveto_r(8, -2, 15, 2, 17, 4)
  243. smooth_r(0, 6, -2, 9)
  244. curveto_r(10, 10, 10, 29, 11, 33)
  245. smooth_r(23, 4, 25, 6)
  246. smooth_r(-17, 83, -17, 78)
  247. Lineto(225, 462)
  248. te.end_fill()
  249. # 图层_6
  250. te.color("black", "#968281") # 脖子
  251. Moveto(262, 329)
  252. te.begin_fill()
  253. vertical(17)
  254. curveto_r(1, 2, 44, 14, 45, 15)
  255. smooth_r(3, 12, 3, 12)
  256. horizontal(3)
  257. vertical(-5)
  258. curveto_r(1, -3, 4, -6, 5, -7)
  259. lineto(36, -14)
  260. curveto_r(1, -1, 3, -16, 2, -17)
  261. Curveto(318, 348, 296, 344, 262, 329)
  262. te.end_fill()
  263. # 图层_8
  264. te.color("black", "#E7F1FF") # 白色褶皱
  265. Moveto(225, 462)
  266. te.begin_fill()
  267. lineto(-3, -5) # -3,-3,-3,-5
  268. curveto_r(0, -2, 4, -4, 5, -6)
  269. smooth_r(16, 3, 19, -8)
  270. smooth_r(0, -7, 0, -11)
  271. smooth_r(5, -8, 9, -5)
  272. smooth_r(19, -8, 19, -11)
  273. smooth_r(6, -7, 6, -7)
  274. smooth_r(7, -2, 9, -4)
  275. lineto(41, -2)
  276. lineto(12, 9)
  277. smooth_r(3, 15, 7, 18)
  278. smooth_r(15, 4, 17, 4)
  279. smooth_r(4, -4, 6, -4)
  280. smooth_r(6, 4, 5, 9)
  281. smooth_r(0, 9, 0, 9)
  282. smooth_r(1, 7, 7, 6)
  283. smooth_r(8, 0, 8, 0)
  284. lineto(-2, 8)
  285. Lineto(225, 462)
  286. te.end_fill()
  287. te.pensize(2)
  288. Moveto(240, 450)
  289. smooth_r(0, 9, 3, 12)
  290. Moveto(372, 462)
  291. curveto_r(-2, -4, -5, -29, -7, -28)
  292. te.pensize(1)
  293. # 图层_7
  294. te.color("black", "#A2B8D6") # 衣领
  295. Moveto(262, 331)
  296. te.begin_fill()
  297. curveto_r(0, 8, -1, 13, 0, 15)
  298. smooth_r(43, 14, 45, 15)
  299. lineto(3, 12)
  300. horizontal(3)
  301. smooth_r(-1, -3, 0, -5)
  302. lineto(5, -7)
  303. lineto(36, -14)
  304. curveto_r(1, -1, 2, -12, 2, -15)
  305. smooth_r(25, -2, 15, 13)
  306. curveto_r(-2, 4, -7, 29, -7, 32)
  307. smooth_r(-35, 19, -41, 22)
  308. smooth_r(-9, 14, -12, 14)
  309. smooth_r(-7, -12, -14, -15)
  310. curveto_r(-19, -2, -41, -25, -41, -25)
  311. smooth_r(-10, -26, -10, -30)
  312. Smooth(255, 332, 262, 331)
  313. te.end_fill()
  314. Moveto(262, 346)
  315. lineto(-12, -6)
  316. Moveto(369, 333)
  317. curveto_r(2, 4, -6, 10, -15, 14)
  318. # 图层_9
  319. te.color("black", "#151515") # 领结
  320. Moveto(247, 358)
  321. te.begin_fill()
  322. curveto_r(-5, 3, -8, 20, -6, 23)
  323. curveto_r(25, 21, 50, 17, 50, 17)
  324. lineto(-23, 64)
  325. horizontal(22)
  326. smooth_r(1, -13, 2, -16)
  327. lineto(13, -50)
  328. curveto_r(2, 2, 7, 3, 10, 1)
  329. smooth_r(18, 65, 18, 65)
  330. horizontal(19)
  331. lineto(-24, -65)
  332. curveto_r(21, 5, 39, -10, 44, -13)
  333. curveto_r(5, -20, 1, -21, 0, -24)
  334. curveto_r(-18, -2, -49, 15, -52, 17)
  335. smooth_r(-11, -3, -15, -1)
  336. Smooth(252, 356, 247, 358)
  337. te.end_fill()
  338. # 图层_10
  339. 源码、解答、资源、学习交流可加企鹅裙:261823976##
  340. te.color("black", "#A2B8D6") # 衣领(透过领结)
  341. Moveto(297, 387)
  342. te.begin_fill()
  343. lineto(-11, 6)
  344. curveto_r(-1, 0, -20, -7, -30, -19)
  345. Curveto(259, 373, 297, 385, 297, 387)
  346. te.end_fill()
  347. Moveto(323, 384)
  348. te.begin_fill()
  349. lineto(8, 7)
  350. lineto(30, -14)
  351. curveto_r(1, -1, 5, -6, 4, -7)
  352. Smooth(329, 379, 323, 384)
  353. te.end_fill()
  354. # 图层_11
  355. te.color("black", "#F3EEEB") # 脸
  356. Moveto(185, 212)
  357. te.begin_fill()
  358. curveto_r(4, -9, 46, -77, 52, -75)
  359. curveto_r(-2, -17, 19, -68, 27, -73)
  360. curveto_r(16, 15, 71, 108, 76, 112)
  361. smooth_r(76, 53, 86, 60)
  362. curveto_r(0, 65, -27, 75, -31, 76)
  363. curveto_r(-50, 28, -70, 30, -85, 30)
  364. smooth_r(-77, -22, -86, -26)
  365. Curveto(180, 302, 186, 228, 185, 212)
  366. te.end_fill()
  367. # 图层_12
  368. te.color("black", "#2B1D29") # 头发
  369. Moveto(189, 202)
  370. te.begin_fill()
  371. curveto_r(-1, 22, 19, 51, 19, 51)
  372. smooth_r(-10, -42, 7, -92)
  373. Curveto(212, 168, 196, 189, 189, 202)
  374. te.end_fill()
  375. Moveto(221, 155)
  376. te.begin_fill()
  377. curveto_r(-2, 6, 5, 48, 5, 48)
  378. smooth_r(18, -28, 20, -48)
  379. curveto_r(-5, 24, 4, 43, 7, 50)
  380. curveto_r(-10, -49, 3, -72, 13, -106)
  381. curveto_r(-2, -7, -3, -32, -3, -35)
  382. curveto_r(-17, 18, -27, 71, -27, 71)
  383. Lineto(221, 155)
  384. te.end_fill()
  385. Moveto(264, 64)
  386. te.begin_fill()
  387. curveto_r(-4, 5, 14, 100, 14, 100)
  388. smooth_r(-6, -79, -5, -85)
  389. curveto_r(0, 98, 49, 139, 49, 139)
  390. smooth_r(8, -50, 3, -65)
  391. Smooth(272, 64, 264, 64)
  392. te.end_fill()
  393. Moveto(342, 176)
  394. te.begin_fill()
  395. curveto_r(-1, 27, -10, 57, -10, 57)
  396. smooth_r(20, -33, 17, -54)
  397. Lineto(342, 176)
  398. te.end_fill()
  399. te.penup()
  400. te.begin_fill()
  401. polyline(349, 180, 353, 203, 361, 203)
  402. polyline(361, 203, 362, 188, 349, 180)
  403. te.end_fill()
  404. # 图层_13
  405. te.pensize(2)
  406. Moveto(210, 180) # 眉毛
  407. curveto_r(5, -4, 63, 9, 63, 14)
  408. Moveto(338, 193)
  409. curveto_r(0, -3, 18, -6, 18, -6)
  410. te.pensize(1)
  411. # 图层_14
  412. te.color("black", "#D1D1D1") # 眼睛1
  413. te.pensize(2)
  414. Moveto(206, 212)
  415. te.begin_fill()
  416. lineto(15, -7)
  417. curveto_r(4, -1, 26, -2, 30, 0)
  418. smooth_r(10, 3, 12, 7)
  419. te.pencolor("#D1D1D1")
  420. te.pensize(1)
  421. smooth_r(2, 27, -1, 30)
  422. smooth_r(-39, 5, -44, 1)
  423. Smooth(206, 212, 206, 212)
  424. te.end_fill()
  425. Moveto(384, 204)
  426. te.begin_fill()
  427. te.pencolor("black")
  428. te.pensize(2)
  429. curveto_r(-3, -1, -18, -1, -28, 1)
  430. smooth_r(-9, 6, -10, 9)
  431. te.pencolor("#D1D1D1")
  432. te.pensize(1)
  433. smooth_r(3, 18, 6, 23)
  434. smooth_r(38, 6, 40, 4)
  435. smooth_r(10, -9, 13, -22)
  436. te.pencolor("black")
  437. te.pensize(2)
  438. Lineto(384, 204)
  439. te.end_fill()
  440. # 图层_15
  441. te.color("#0C1631", "#0C1631") # 眼睛2
  442. te.pensize(1)
  443. Moveto(216, 206)
  444. te.begin_fill()
  445. curveto_r(-1, 5, 0, 26, 7, 35)
  446. smooth_r(30, 2, 33, 0)
  447. smooth_r(5, -31, 2, -34)
  448. Smooth(219, 203, 216, 206)
  449. te.end_fill()
  450. Moveto(354, 207)
  451. te.begin_fill()
  452. curveto_r(-2, 1, 2, 29, 4, 31)
  453. smooth_r(30, 3, 33, 1)
  454. smooth_r(6, -24, 4, -27)
  455. lineto(-11, -8)
  456. Curveto(382, 204, 357, 206, 354, 207)
  457. te.end_fill()
  458. # 图层_17
  459. te.color("#F5F5F5", "#F5F5F5") # 眼睛3
  460. Moveto(253, 211)
  461. te.begin_fill()
  462. curveto_r(-3, 0, -8, 8, 1, 10)
  463. Smooth(258, 210, 253, 211)
  464. te.end_fill()
  465. Moveto(392, 209)
  466. te.begin_fill()
  467. lineto(4, 3)
  468. vertical(4)
  469. lineto(-4, 2)
  470. Curveto(386, 214, 392, 209, 392, 209)
  471. te.end_fill()
  472. # 图层_18
  473. te.color("#352F53", "#352F53") # 眼睛4
  474. Moveto(219, 229)
  475. te.begin_fill()
  476. smooth_r(2, -5, 6, -4)
  477. smooth_r(18, 13, 27, 1)
  478. curveto_r(3, 0, 5, 3, 5, 3)
  479. vertical(13)
  480. Horizontal(224)
  481. Lineto(219, 229)
  482. te.end_fill()
  483. Moveto(357, 227)
  484. te.begin_fill()
  485. smooth_r(4, -6, 10, -2)
  486. smooth_r(10, 13, 19, 1)
  487. curveto_r(6, 0, 8, 6, 8, 6)
  488. lineto(-2, 9)
  489. curveto_r(-12, 3, -29, 0, -32, -2)
  490. Smooth(357, 227, 357, 227)
  491. te.end_fill()
  492. # 图层_19
  493. te.color("#9A90CB", "#9A90CB") # 眼睛5
  494. Moveto(227, 231)
  495. te.begin_fill()
  496. curveto_r(-6, 0, -5, 5, -3, 8)
  497. smooth_r(24, 2, 27, 0)
  498. smooth_r(0, -8, -1, -8)
  499. Smooth(234, 231, 227, 231)
  500. te.end_fill()
  501. Moveto(361, 227)
  502. te.begin_fill()
  503. curveto_r(2, 18, 26, 14, 30, 6)
  504. smooth_r(-1, -3, -2, -4)
  505. smooth_r(-15, 9, -24, -4)
  506. Curveto(363, 224, 361, 225, 361, 227)
  507. te.end_fill()
  508. # 图层_16
  509. te.pencolor("black") # 眼睛(线条)
  510. te.pensize(3)
  511. # Moveto(206,213)
  512. # lineto(14,-8)
  513. # curveto_r(3,-1,30,0,33,1)
  514. # lineto(10,6)
  515. Moveto(225, 215)
  516. curveto_r(10, 28, 22, 16, 24, 6)
  517. Moveto(365, 219)
  518. curveto_r(4, 14, 18, 24, 22, -3)
  519. te.pensize(2)
  520. line(240.5, 207.5, 227.5, 211.5)
  521. line(245.5, 209.5, 227.5, 214.5)
  522. line(247.5, 211.5, 227.5, 217.5)
  523. line(247.5, 214.5, 229.5, 220.5)
  524. line(247.5, 218.5, 230.5, 223.5)
  525. line(246.5, 222.5, 232.5, 226.5)
  526. line(244.5, 225.5, 234.5, 228.5)
  527. line(377.5, 207.5, 367.5, 210.5)
  528. line(384.5, 207.5, 366.5, 212.5)
  529. line(385.5, 210.5, 366.5, 215.5)
  530. line(384.5, 213.5, 366.5, 218.5)
  531. line(384.5, 215.5, 367.5, 220.5)
  532. line(384.5, 218.5, 368.5, 223.5)
  533. # line(383.5,220.5,368.5,225.5)
  534. line(382.5, 223.5, 370.5, 227.5)
  535. # line(381.5,226.5,373.5,229.5)
  536. # 图层_20
  537. te.pencolor("black")
  538. Moveto(309, 270) # 鼻子、嘴
  539. curveto_r(0, 0, 4, 7, 1, 9)
  540. line(296.5, 307.5, 303.5, 307.5)
  541. Moveto(315, 307)
  542. smooth_r(10, -1, 10, 2)
  543. te.penup()
  544. te.hideturtle()
  545. te.update()
  546. te.done()

效果展示

看~是不是很精美很好看啊

这效果绝绝子啊

尾语
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/969005

推荐阅读
相关标签