Posts

python turtle animation 16

Image
import turtle as t t.tracer(10) t.bgcolor('black') t.setup(1537,865) t.width(20) color=('red','blue') t.ht() for i in range(700): t.fillcolor(color[i%2]) t.pencolor('black') t.begin_fill() t.bk(i) t.rt(120) t.fd(i) t.lt(90) t.fd(i) t.rt(120) t.fd(i) t.rt(31) t.end_fill() t.done() Subscribe to subhanker codes

python turtle animation 15

Image
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

python turtle animation 14

Image
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

python turtle animation 13

Image
import turtle as t import colorsys as c t.tracer(10) t.bgcolor('black') t.setup(1537,865) t.width(20) q=0 for i in range(1200): q+=0.01 color=c.hsv_to_rgb(q,1,1) t.pencolor(color) t.begin_fill() t.fd(i) t.rt(10) t.fd(i) t.circle(i,90) t.fd(i) t.rt(120) t.setpos(0,0) t.circle(i,30) t.end_fill() t.done() Subscribe to subhanker codes

python turtle animation 12

Image
import turtle as t import colorsys as c t.setup(1537,865) t.tracer(60) t.bgcolor('black') t.width(2) q=0 for i in range(500): q+=0.01 color=c.hsv_to_rgb(q,1,1) t.pencolor('black') t.fillcolor(color) t.fd(i) t.rt(180) t.fd(i) t.rt(90) t.begin_fill() t.fd(i) t.rt(60) t.fd(i) t.circle(i,270) t.fd(i) t.rt(121) t.end_fill() t.done() Subscribe to subhanker codes

python turtle animation 11

Image
import turtle as t t.tracer(200) t.width(2) t.bgcolor('black') t.setup(1537,865) color=('red','blue') for i in range(1200): t.pencolor(color[i%2]) t.fd(i) t.rt(120) t.fd(i) t.circle(i,30) t.fd(i) t.begin_fill() t.circle(i,120) t.fd(i) t.lt(30) t.end_fill() t.bk(i) t.lt(121) t.done() Subscribe to subhanker codes

python turtle animation(10)

Image
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