Source Code :
from turtle import *import colorsyswn = Screen()wn.setup(1200,680) wn.bgcolor('black')t = Turtle()hue = 0.0for i in range (500):color = colorsys.hsv_to_rgb(hue,1,1)t.pencolor(color)t.fd(i)t.rt (180)t.fd(i)t.rt (91)t.fd(i)t.speed (0)hue += 0.01wn.mainloop()
0 Comments
Post a Comment