'''
Created on Dec 4, 2013

@author: YOUR NAME HERE
'''
import turtle


def tree (t, branchLen, depth):
    # general case: draw a smaller version of the tree
    if depth > 0 and branchLen > 5:
        t.forward(branchLen)
        t.right(20)
        tree(t, branchLen-15, depth-1)
        t.left(40)
        tree(t, branchLen-15, depth-1)
        t.right(20)
        t.backward(branchLen)
    # base case: draw a leaf
    else:
        pass


def drawEverything (depth):
    # create as many turtles as you want
    t = turtle.Turtle()
    # position turtle properly to create your artwork
    for x in range(2):
        t.left(90)
        t.up()
        t.backward(100)
        t.down()
        t.color("brown")
        # recursively draw something
        tree(t, 75, depth)
        t.right(90)
