new python turtle graphics codes
import turtle as t
import colorsys as c
t.tracer(20)
t.bgcolor('black')
t.setup(1537,865)
o=0.0
for i in range(2000):
o+=0.01
color=c.hsv_to_rgb(o,1,1)
t.begin_fill()
t.fillcolor(color)
t.fd(i)
t.rt(200)
t.circle(i,90)
t.fd(i)
t.rt(300)
t.fd(i)
t.rt(200)
t.setpos(0,0)
t.end_fill()
t.done()

Comments
Post a Comment