This exercise was one of the trickiest yet — I attempted to get plants to grow on the click or the mouse, each time along the X position of the mouse. After playing with the code a bit, I also decided to program the leaves to show up in random values of green on each appearance. Here is a short video of the growing plants:
This sketch is part of object oriented programming, which means that an initial object was created and then called in specific circumstances within the program. The code for it is here.
I really want to thank so many people who helped me with this sketch: Kat, Matt, Ross and Ziv.