App to Present in Class: Global Warming
- Kimberly Agosto
- Dec 7, 2018
- 1 min read
My group-mate and I decided to focus our project on global warming. We designed an earth that rotated a circle with the sentence "Save the Earth" on it. When you click the circle, the colors of the canvas and the earth would change and become bluer/greener (so as to indicate that the more action you do to save the earth, the better and more normal its appearance gets). I also added fun facts that could be accessed by pushing keys 1-0 on the keyboard.
Difficulties in this project were:
Figuring out how to create code that would allow the mouse clicking on the ellipse change the colors of the canvas and the earth. This forced me to name a lot of variables, and do a lot of trial and error, which proved to be tedious and disheartening at times. I have, however, gotten better at parameters for shapes, which is shown in my JSON project.
code: https://editor.p5js.org/kimagosto/full/ByB9AI3C7


Comments