Commit bad98f74 by BellCodeEditor

save project

parent 9f5d6659
Showing with 20 additions and 2 deletions
#设置画笔
import turtle
#编辑画笔
pen=turtle.Pen()
screen=turtle.Screen()
#颜色大小设置
screen.bgcolor("light pink")
colors=["white","blue","violet","cyan"]
# 设置风车参数
pen.speed(1000)
#画风车
for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
\ No newline at end of file
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
import turtle import turtle
#编辑画笔 #编辑画笔
pen=turtle.Pen() pen=turtle.Pen()
#screen=turtle.Screen() screen=turtle.Screen()
#颜色大小设置 #颜色大小设置
screen.bgcolor("light pink") screen.bgcolor("light pink")
colors=["white","blue","violet","cyan"] colors=["white","blue","violet","cyan"]
# 设置风车参数 # 设置风车参数
distance=1
pen.speed(1000) pen.speed(1000)
#画风车 #画风车
for i in range(1,300): for i in range(1,300):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment