Python hub
25 subscribers
1 photo
5 links
Python Project Source code
Download Telegram
Channel created
Channel photo updated
import turtle as t
t.tracer(200)
t.width(2)
t.bgcolor('black')
t.setup(1537,865)
color=('red','blue')
for i in range(1200):
t.pencolor(color[i%2])
t.fd(i)
t.rt(120)
t.fd(i)
t.circle(i,30)
t.fd(i)
t.begin_fill()
t.circle(i,120)
t.fd(i)
t.lt(30)
t.end_fill()
t.bk(i)
t.lt(121)
t.done()
import turtle as t
import colorsys as c
t.tracer(20)
t.setup(1537,865)
t.bgcolor('black')
t.ht()
p=0
t.width(4)
for i in range(1200):
color=c.hsv_to_rgb(p,1,1)
p+=0.01
t.fillcolor(color)
t.fd(i)
t.begin_fill()
t.rt(200)
t.fd(i)
t.rt(120)
t.fd(i)
t.rt(60)
t.fd(i)
t.rt(120)
t.end_fill()
t.done()
Hi guys