Creative Refactorings

Purple Rain

The creative refactoring me and my partner, Shaun, did to improve Daniel Shiffman's code as part of the Creative Coding challenge was that we added a parallax effect (rain falls faster in the foreground than the background). Another refactoring we did to make the code look better was making the rain create a splash effect when colliding with the ground. We then added a rainfall pattern that starts with a light rainfall then gradually increases in density over time.

If you would like to access the Purple Rain creative refactoring code, click the p5.js Web Editor link here to check it out!