I began this experiment by drawing inspiration from a Patt Vira’s video on this wave pattern based on oscillation.
I really liked the particle dynamic, and started to imagine how these would oscillate if they weren't on a grid but moving radially from the center of the canvas instead. So, I began modifying her code (with GPTs help) from x, y coordinates on a grid to positioning them radially with an angle and a radius. I knew conceptually how this would work so I could explain it to GPT, but and GPT helped me with the trigonometry!
Once I had working code I tinkered with a number of the variables to get an aesthetic output that I liked :) and I introduced some variable dynamics according to mouse position. here's the result: https://editor.p5js.org/ajt521/sketches/k0zT4Wyo2