Nature of Code - Edward Zhou

I wanted to expand on my previous project using Perlin Noise vector fields, which created a very natural movement pattern yielding aesthetically pleasing results. However, my previous sketch did not incorporate acceleration, so I changed the vector field to apply an acceleration rather than set a velocity. I also normalized the velocity after applying forces and softened the acceleration to create a more natural, scattered flow field.

Screen Shot 2023-02-15 at 8.57.37 AM.png

I wanted to add a gravitational element to the project, so I applied a gravitational pull to the mouse whenever the button was held down. That created to a simple, discreet effect where the particles would simply clump together in one position and disperse when the mouse was let go. I adjusted this by having the particles instead rotate around a gravitational source with a visible radius, creating a singularity-like design. To emphasize this, I also added a color shift to the particles in the gravitational orbit.

Screen Shot 2023-02-15 at 8.57.11 AM.png

I experimented with some different display styles, referring back to my previous project to achieve a more feathery look where the images of spirals lingered even after the mouse was no longer being used. I also made it possible to create spirals rotating the opposite direction by holding shift click. Overall I’m not too sure which style I like better, but both look cool I guess.

Screen Shot 2023-02-15 at 9.26.21 AM.png

p5 Editor (original look): https://editor.p5js.org/EdwardZ/sketches/K6xQlWMPR

p5 Editor (feathered look): https://editor.p5js.org/EdwardZ/sketches/I1BppJSmv