Assignment 3: Buttons/Switches
- Kiya Brown

- Mar 1, 2021
- 1 min read
This assignment proved to be incredibly more difficult for me than the first two. I originally had a different idea for this assignment, one that would involve the user inputting their name and then their name being shown "floating" on a cloud across the sky. After playing around with the input and buttons, I wasn't able to figure out exactly how to do something like that and decided to switch gears a little bit. I knew I wanted to keep the city-scape that I had already designed, so I instead used the "button" tool to make it rain over the city. I used a lot of the language and processes from examples and videos to put the code together, but am not sure if I understand it completely myself.
Designing the sketch was my favorite part. Having to put multiple rectangles for buildings and windows, as well as changing their colors for each layer ended up being quite the tedious process, but I'm happy with the way it came out.
Programming the button so that the rain would fall when it was pressed was super difficult at first. It took a lot of messing around with the different factors to finally get it to work the way I envisioned. I used "if" statements as well as true/false.
After some long hours and a lot of frustration, I am overall happy with the way the sketch came out. Although it's not what I had originally planned, I'm glad I was able to get something to work!




Comments