amazing python turtle graphics codes
import turtle as t
import colorsys as c
t.bgcolor('black')
t.tracer(20)
t.width(10)
o=0.0
t.setup(1537,865)
for i in range(20000):
color=c.hsv_to_rgb(o,0.9,0.9)
t.fillcolor(color)
o+=0.1949
t.pencolor(color)
t.fd(i)
t.rt(200)
t.fd(i)
t.rt(90)
t.done()
Comments
Post a Comment