# drawing.py # ---------- # By Stacy S # # (Drew a tree, and the leaves change colors.) from turtle import * from shapes import * from superturt import * fly(0,-150) colors = ['green', 'greenyellow', 'yellow', 'goldenrod', 'darkorange', 'orange', 'orangered', 'red', 'violetred4', 'violetred', 'purple4', 'midnightblue'] for color in colors: with no_delay(): with restore_state_when_finished(): draw_tree_nl(25) with restore_state_when_finished(): draw_tree_wl(25, color)