import turtle as t
#subhanker codes#subhanker codes#subhanker codes
t.speed(0)#subhanker codes#subhanker codes
#subhanker codes
t.bgcolor('black')
#subhanker codes
r,g,b=255,0,0#subhanker codes#subhanker codes
#subhanker codes
for i in range(255*2):
#subhanker codes
t.colormode(255)
#subhanker codes
if i<255//3:
b+=3
elif i<255*2//3:
r-=3
elif i<255:
g+=3
elif i<255*4//3:
b-=3
elif i<255*5//3:
r+=3
else:
g-=3
#subhanker codes
t.fd(i)#subhanker codes
#subhanker codes
t.rt(90)#subhanker codes
#subhanker codes
t.fd(i) #subhanker codes
#subhanker codes
t.rt(89.9) #subhanker codes
#subhanker codes
t.pencolor(r,g,b) #subhanker codes
#subhanker codes#subhanker codes
t.done() #subhanker codes
#subhanker codes#subhanker codes
python turtle animation 15
import turtle as t import colorsys as c t.tracer(200) t.width(5) t.setup(1537,865) t.bgcolor('black') q=0 for i in range(2000): q+=0.01 color=c.hsv_to_rgb(q,1,1) t.fillcolor(color) t.begin_fill() t.circle(i,121) t.circle(120,30) t.fd(i) t.rt(60) t.bk(i) t.rt(90) t.fd(i) t.lt(120) t.end_fill() t.done() Subscribe to subhanker codes
Comments
Post a Comment