1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 美国队长盾牌-精致版(自吹)python海龟画图(附turtle颜色详表)

美国队长盾牌-精致版(自吹)python海龟画图(附turtle颜色详表)

时间:2021-01-10 14:17:07

相关推荐

美国队长盾牌-精致版(自吹)python海龟画图(附turtle颜色详表)

美国队长盾牌-精致版

Steven Rogers:

A strong man who has known power all his life,they lose respect for that power.But a weak man who values of strength & loves ,compassion.

注:百度图片

文章目录

美国队长盾牌-精致版一些步骤的说明详细代码涂色小游戏

一些步骤的说明

1.from turtle import*

这一步是为了偷懒防止你的屏幕上到处都是小海龟

2.mainloop()

这个是保留画布,以便仔细观赏

不多bb,直接上代码

详细代码

#小山from turtle import turtle* #要不然你的屏幕到处都是小海龟(捂脸#开始疯狂画圈圈pensize(3)penup()goto(0,-99)color('blue','crimson')begin_fill()circle(198,360)end_fill()penup()goto(0,-60)color('crimson','white')help(color)begin_fill()circle(159,360)end_fill()penup()goto(0,-21)color('blue','crimson')begin_fill()circle(120,360)end_fill()penup()goto(0,18)color('blue','blue')begin_fill()circle(80,396)end_fill()#五角星的绘制color('white','white')penup()begin_fill()pendown()rt(70)for i in range(5):fd(-153)rt(144)end_fill()pensize(0.08)penup()goto(0,-99)pendown()rt(-34)#刻痕for i in range(1,80,3):penup()goto(0,i+99)pendown()for a in range(5):color('darkgrey')circle(-i,36)color('lightgray')circle(-i,36)a=a-5for i in range(120,159,3):penup()goto(0,i+99)pendown()color('lightgray')circle(-i,360)a=a-5#方便长时间的观赏,保留画布mainloop()

注:以上数据是我心算出来的,并不精确。

涂色小游戏

这是我参照网上的图片颜色写出来的,但是我对颜色不是很敏感,所以附上一张海龟的颜色详表,大家可以根据自己的理解上色。

颜色详表:

颜色详表来自CSDN中Koyuriond的帖子

我是链接

前些日子才有时间系统把美队补一遍,写个代码纪念一下

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。