Here is the link to my design.
For this exercise, I wanted to play around with my self-portrait and figure out ways to add animation to it. I added a listener for whenever the mouse is clicked then the background changes colors, which also changes whenever the program is reset. I used the map function to make the eyes move and I used a conditional if-else statement to adjust the stroke weight of the piece after a certain amount of time. I wanted top use these functions to try and push myself and use functions that I haven't used before. I also wanted to get used to using these functions before trying something similar, but more complicated which I want to do.
Eventually, everything that I tried worked. The mouse listener I used to change the background and the functions I used to change the stroke weight were the hardest to figure out. The mouse listener took more time to figure out because I had to play around with the order of the code for the computer to make sense of what I wanted to do. The stroke weight functions took more time because I was dealing with time and conditional statements which I didn't have much experience with. I used this link to help me with figuring out how to change the stroke weight after a certain amount of time and not just have it change after each second.
This project did bring up a question about functions that deal with touch and coding. I want to do more research on how to incorporate touch in my designs since I have a touch laptop, so it can translate easier into game design.

Comments