https://editor.p5js.org/saramui/sketches/9pSXcDAAU
When I first started my project, I knew I wanted to do something with circles while manipulating their fill and stroke. When I saw that I had to include a line in the assignment, I decided to try and integrate circles and lines. Instead of having the lines go through the middle of the circle, I liked having the circles hang off the line better. It was then that I decided I would do something with lights, since I was inspired by string lights. The first interactive measure I put was drawing the line while the mouse button was pressed. I liked the thought of having a color changing string, so I made the line and stroke of the circles change into random colors with every frame. I wanted different color lights too, and thought that it would be good to incorporate interactivity into the color of the lights. I eventually implemented a keyPress that would change the color of the circles every time I pressed it. I also decided to implement a size changer for the lights and accompanying stroke to include more interactivity and customization. It was then that I learned about the difference between just the Pressed and the IsPressed functions, since the former activates the function when the button is pressed once, while the latter is only able to be used while the button is pressed down.
The main thing I learned from this project was how to think logically about what responses I wanted from what stimuli and how that translates into a sequence that the computer can understand.
Leave a Reply