Commit 5a8f0771 by BellCodeEditor

save project

parent 32e19da5
Showing with 37 additions and 0 deletions
# import turtle as t
# import random
# t.bgcolor('black')
# t.speed(0)
# t.pencolor('yellow')
# color_list = ['white','blue']
# t.penup()
# for j in range(500):
# x = random.randint(-300,300)
# y = random.randint(-250,250)
# l = random.randint(30,100)
# color = random.choice(color_list)
# t.pencolor(color)
# t.goto(x,y)
# t.pendown()
# for i in range(6):
# t.forward(100)
# t.right(144)
# t.penup()
# t.done()
import turtle as t
t.pensize(0.1)
t.bgcolor('black')
t.pencolor('blue')
t.speed(0)
s = 0.1
l = 10
for j in range(10):
for i in range(3):
t.pensize(s)
t.forward(l)
t.right(120)
s+=0.2
l+=10
t.hideturtle()
t.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