Commit 607686c7 by BellCodeEditor

save project

parent 13c60956
Showing with 4 additions and 0 deletions
...@@ -4,7 +4,11 @@ ...@@ -4,7 +4,11 @@
""" """
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
pencolor=("blue","red","yellow","orange")
screen.bgcolor("black")
for i in range(1,300,3): for i in range(1,300,3):
pen.color(pencolor[i%4])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(91)
i+=1 i+=1
......
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