Commit 0e4f7c64 by BellCodeEditor

save project

parent 1bc34a5d
Showing with 19 additions and 1 deletions
......@@ -10,7 +10,8 @@ distance=2
colors=["red","orange","yellow","green"]
for i in range(300):
pen.forward(distance)
pen.pencolor(color[i%4])
pen.pencolor(colors[i%4])
distance+=1
pen.right(91)
# 隐藏画笔,保存画布
pen.hideturtle()
......
import turtle
pen = turtle.Pen()
# 请创造师在下面接着创作
colors=["red","orange","cyan","green","black","blue"]
distance=1
for i in range(1000000):
pen.forward(distance)
pen.pencolor(colors[i%6])
pen.pensize(3)
distance+=2
pen.right(61)
pen.speed(0)
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
\ No newline at end of file
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