generated from mwc/project_drawing
19 lines
511 B
Python
19 lines
511 B
Python
# drawing.py
|
|
# ----------
|
|
# By Stacy S
|
|
#
|
|
# (Drew a tree, and the leaves change colors. Trying to make the leaves fall now?)
|
|
|
|
from turtle import *
|
|
from shapes import *
|
|
from superturt import *
|
|
|
|
colors = ['green', 'greenyellow', 'yellow', 'goldenrod', 'darkorange', 'orange', 'orangered', 'red', 'firebrick', 'brown']
|
|
for color in colors:
|
|
with no_delay():
|
|
with restore_state_when_finished():
|
|
draw_tree_nl(20)
|
|
with restore_state_when_finished():
|
|
draw_tree_wl(20, color)
|
|
|