Commit ddc29bfc by BellCodeEditor

save project

parent d074fe22
Showing with 5 additions and 3 deletions
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
""" """
import turtle import turtle
Pen=turtle.Pen() Pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
color=["red","orange","green","yellow"]
for i in range(1,300): for i in range(1,300):
Pen.pencolor(color[i%4])
Pen.forward(i) Pen.forward(i)
Pen.right(91) Pen.right(91)
Pen.hideturtle() pen.hideturtie()
turtle.done() turtle.done()
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