water the tree, 2021

three trees where one has leaves

The burning of fossil fuels is causing the increase of atmospheric CO2 levels. This is having a devastating impact on our ecosystem. The idea of this sketch is to spend some time thinking about our impact on our planet.As a project to learn about objects and modularity, I wanted to be able to create three instances of a tree and have the user add life to it. The watering can only appears when the mouse is over the specific instance of the tree. When clicked, the leaves become added with a random tint of green. The coding was inspired by Professor Hollenbach’s classroom example.

p5.js sketch & code