Make a Twinkling Star Light Graphics Design Program in Python using Turtle Module 



Source Code :

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()