Jonathan's CS151 Project 8

compared with
Current by Jonathan D. Hallal
on Apr 12, 2017 23:02.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
Task 1:

For this project, we needed to update our turtle_interpreter class. This is the class that reads in a string of commands and uses the turtle to draw that string. Previously, we had no code in this class that allowed python to read in commands such as color and color stacks. I added code to this class that started allowing python to read in certain characters as color changes in the image. Below is a snippet of the code that I added to this class: !Screen Shot 2017-04-12 at 10.36.00 PM.png|border=1,width=300!

!Screen Shot 2017-04-12 at 10.36.00 PM.png|border=1,width=300!
Adding these lines of code really helped improve my code an allowed python to read in more complicated strings.
Task 2:
The second task of this project was to create a scene that called at least two 2 rule L-systems. These L-systems needed to draw trees that had some type of leaf or berry on it. This would ensure our usage of the color store/restore. Below is my scene for the second task: !Screen Shot 2017-04-11 at 3.12.59 PM.png|border=1,width=300!

!Screen Shot 2017-04-11 at 3.12.59 PM.png|border=1,width=300!
I used three different L-systems in this scene. The first two (going left to right) have only leafs on them. However the last one has both leafs and berries. It is important that this task was completed as it is the main objective in this project.
Task 3: