Loading design...

A beautiful concentric circles spiral galaxy created with Python Turtle. Read the code below, copy it, and try it in your own Python environment.
import turtle
import colorsys
t = turtle.Turtle()
s = turtle.Screen()
s.bgcolor('black')
s.tracer(50)
h = 0
for i in range(560):
c = colorsys.hsv_to_rgb(h, 1, 0.9)
h += 0.006
t.pencolor(c)
t.up()
t.forward(i * 0.6)
t.down()
t.circle(5)
t.right(61)
s.update()
turtle.done()