Make a Twinkling Star Light Graphics Design Program in Python using Turtle Module
from turtle import *
import colorsys
wn = Screen()
wn.setup(1200,680)
wn.bgcolor('black')
t = Turtle()
t.pensize(2)
hue = 0.0
for i in range(500):
color = colorsys.hsv_to_rgb(hue, 1,1)
t.pencolor (color)
t.fd(i)
t.rt (92)
t.fd(i)
t.rt (180)
t.speed (0)
hue +=0.01
wn.mainloop()
0 Comments
Post a Comment