CMU SAMS 2018
Eileen Guo
Instructions: Press and/or hold mouse button to speed up/slow down movement. Press spacebar to change color scheme. Press the “R” key to restart the sketch.
This sketch is heavily remixed from the sketch Inertia Brush in order to learn more about coding in p5.js and coding in general. After learning about objects and arrays, I wondered what would happen if I turned the brush into a shape and added many copies of that shape. The result was a cool layering effect that is attained by holding the mouse/flinging it around. Different types of patterns will arise depending on the initial speed of the objects and how long the mouse is held. This can be used to make colorful screensavers if you want.
Source code