Duration 9:24

Make turtle graphics | python tutorial python turtle

14 watched
0
3
Published 3 Aug 2023

source code:- import turtle import colorsys t=turtle.Turtle() wn=turtle.Screen() wn.setup(height=900,width=2000) t.speed(0) t.ht() t.up() t.goto(-200,200) t.down() wn.bgcolor('black') x=500 h=0.001 while True: t.fillcolor(colorsys.hsv_to_rgb(h,1,1)) t.begin_fill() for i in range(4): t.fd(x) t.rt(89) t.end_fill() x-=1 h+=0.005 before run turn phone in landscape mode

Category

Show more

Comments - 0