Loading design...

A beautiful star spiral galaxy created with Python Turtle. Read the code below, copy it, and try it in your own Python environment.
from turtle import *
import colorsys
tracer(50)
bgcolor('black')
tracer(2)
pensize(1)
for i in range(350):
color(colorsys.hsv_to_rgb(i / 150.0, 1.0, 1.0))
up()
forward(i * 0.8)
right(59)
down()
size = 5 + i * 0.1
begin_fill()
for _ in range(5):
forward(size)
right(144)
end_fill()
done()