Python Turtle Workshop: HSL Rainbow

Following sample code draw a rainbow using HSL color system.

import turtle as t
import colorsys
screen = t.Screen()
screen.setup(700, 400, 0, 0)
screen.title('HSL Rainbow by CodeGuru.Academy')
t.ht()
t.speed(0)
def jump(x, y):
t.pu()
t.goto(x,y)
t.pd()
jump(200, -150)
radius = 200
flag = 1
pensize = 10
offset = 8
t.seth(90)
t.pensize(pensize)
for n in range(15):
color = colorsys.hls_to_rgb(n / 18, 0.5, 1)
t.color(color)
t.circle(radius, 180 * flag)
pos = t.pos()
print(pos)
jump(pos[0] - offset * flag, pos[1])
print(t.pos())
flag = 1 if flag == -1 else -1
radius += offset
t.done()

HSL Rainbow