'''lecture_36_recursion_turtle_tree.py Uses recursion and turtle to draw trees Oliver W. Layton CS 151: Computational Thinking: Visual Media Fall 2020 ''' import turtle class Tree: def __init__(self, start_x, start_y): ''' Get turtle ready and in-position to draw an upright tree. Show animations (but fast ones) with speed of 7 ''' pass def goto(self, x, y): self.turt.penup() self.turt.goto(x, y) self.turt.pendown() def hold(self): pass def drawTree(self, distance): '''Draw a tree recursively with initial trunk/branch length `distance`. - Draw branches that look like "forks": straight part then left and right offshots +/-20 deg offset from straight. - Stop drawing branches when the branch distance is <= 5 - After drawing left, right, and straight portions, always restore the turtle position to what it was before drawing the "fork". ''' pass if __name__ == '__main__': pass