Week 5 - Conditionals
Week 5 - Conditionals
For this project, I wanted to mimic how it looks at different times of the day. I used morning, afternoon, evening, and night as my "times", and changed the colors of the clouds, sky, and sun to colors I felt were similar to what would appear in nature at these various times. The sun in the image follows the mouse, so when the user moves the cursor, the image will reflect a different time of day depending on it's position (I divided the image into fourths so when mouseX reaches one of these divisions it will change accordingly), and different greetings appear near the bottom of the image as well (see video below for demo). The challenges I had with this project were deciding how to create the background. I tried to just draw a static background outside of the conditional, but I realized I wanted the sun to be able to go behind the clouds and hills so it really wasn't a true background in the sense of the word, so I included them in each step of the conditional, along with the changes I wanted (i.e. different colors for each time of day). The sun was a similar challenge as I initially drew it outside the conditional but then it wasn't displaying properly so I added it to the conditional steps, but before the cloud and hill elements so all the elements would layer the way I wanted them to.