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