import turtle as t import colorsys as c q=0 t.tracer(200) t.setup(1537,865) t.bgcolor('black') t.width(10) for i in range(600): q+=0.01 color=c.hsv_to_rgb(q,1,1) t.pencolor('black') t.fillcolor(color) t.begin_fill() t.fd(i) t.rt(120) t.circle(i,120) t.fd(i) t.lt(120) t.bk(i) t.circle(i,121) t.end_fill() t.done() Subscribe to subhanker codes
import turtle as t import colorsys as c t.tracer(20) t.setup(1537,865) t.bgcolor('black') t.ht() p=0 t.width(4) for i in range(1200): color=c.hsv_to_rgb(p,1,1) p+=0.01 t.fillcolor(color) t.fd(i) t.begin_fill() t.rt(200) t.fd(i) t.rt(120) t.fd(i) t.rt(60) t.fd(i) t.rt(120) t.end_fill() t.done() output: Subscribe to subhanker codes
Comments
Post a Comment