Date: 04-16-2019
Click here to visit on p5 Web Editor
For this assignment, I utilized the concept of spring to make some elastic bracelets with p5. I also integrated the concept of particle system to create bead particles and spring particles within one bracelet instance. Every two beads that are next to each other have repulsion between one another, while the string between them constantly pulls them towards each other.
One difference I made to my project from the spring that we implemented in class is that, I wanted it to be more like a string, not a spring – that is, only when the stretch value is above 0 (actually stretched) would the spring work, and the two beads are pulled towards each other.
When you click on one of the beads to drag it, it turns red.