Loading design...

A beautiful fractal tree created with Python Turtle. Read the code below, copy it, and try it in your own Python environment.
from turtle import *
import colorsys
tracer(100)
bgcolor('#0a1929')
hideturtle()
speed(0)
left(90)
up()
goto(0, -250)
down()
def draw(length, depth):
if length < 12:
color(colorsys.hsv_to_rgb(0.8, 1.0, 1.0))
dot(4)
return
hue = (0.05 + depth * 0.02) % 1.0
color(colorsys.hsv_to_rgb(hue, 0.9, 0.8))
pensize(max(1, length / 12))
forward(length)
right(30)
draw(length * 0.7, depth + 1)
left(60)
draw(length * 0.7, depth + 1)
right(30)
draw(length * 0.7, depth + 1)
backward(length)
draw(150, 0)
done()