Python Turtle Graphic Design #11
Source code:
import turtle as t
import colorsys as cs
t.setup(640, 640)
t.tracer(50)
t.pensize(0)
t.bgcolor('black')
t.hideturtle()
for i in range(1440,0,-1):
t.color(cs.hsv_to_rgb(i/720, 1, 1))
t.begin_fill()
t.rt(60)
for j in range(3):
t.fd(i/5)
t.lt(120)
t.lt(60)
t.end_fill()
t.lt(1)
t.done()
No comments:
Post a Comment