Commit 6ca43f5a by BellCodeEditor

save project

parent f24bdb8a
Showing with 8 additions and 3 deletions
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen.speed(100) pen.speed(200)
pen.pensize(2) pen.pensize(2)
a = turtle.Screen()
a.bgcolor('black')
colors = ['yellow','red','orange','green','white','bule']
for i in range(1,300,2): for i in range(1,1000):
pen.pencolor(colors[i%6])
pen.forward(i) pen.forward(i)
pen.right(89) pen.right(70)
pen .hideturtle() pen .hideturtle()
turtle.done() 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