Created By Shakib Al Hasan Naim
from turtle import *
import colorsys
bgcolor('black')
tracer(500)
def draw():
h = 0
j = 1 # Added this variable, assuming it should be assigned a value.
for i in range(100):
c = colorsys.hsv_to_rgb(h, 1, 1)
h += 0.5
up()
goto(0, 0)
down()
color('black')
fillcolor(c)
begin_fill()
rt(98)
circle(1, 12)
fd(290)
fd(i)
lt(29)
for _ in range(129): # Changed 'i' to '_' to avoid conflict with the outer loop.
fd(_) # Changed 'i' to '_' for the same reason as above.
circle(j, 299, steps=2)
end_fill()
draw()
done()
0 Comments