Files
project_drawing/drawing.py
root 1ab20f18ff I made a python program file with the superturtle functions I needed,
because I couldn't figure out how to get superturtle to import right.
I also added the leaves in, added a branch because the leaves didn't
look thick enough, and then I colored in the leaves and the trunk.

I'm not sure if it was the best way to do it, but I couldn't figure out
how to color in the woody part of the tree and the leaves at first (I
was trying to do like nested fillcolors, but only the leaves would
color in still), so I duplicated all of the tree drawing functions and
made one without leaves and one with leaves, and I colored in the wood
in the former, and colored in the leaves in the latter.
2024-09-24 19:57:54 -04:00

18 lines
303 B
Python

# drawing.py
# ----------
# By Stacy S
#
# (Drew a tree.)
from turtle import *
from math import sqrt
from shapes import *
from superturt import *
with no_delay():
with restore_state_when_finished():
draw_tree_nl(20)
with restore_state_when_finished():
draw_tree_wl(20)
input()