For my midterm project, I decided to explore relations between attractors & movers in the code. Fortunately, I had zillion ideas, unfortunately, also had way too less skills to achieve the result what I wanted.
Tried to play with fractals, processing and three.js,
Not everything was successful, but I definitely learned a lot
Finally, I decided to focus on the ‘attractor’ example and modify it to make a nice visual effect.
My goal was have a system of movers, flying randomly on the screen. Then, slowly, they were supposed to create a hidden image.
To make it happen, I prepared a few png & jpg files, that were about to be presented by movers. After importing them into p5, I wrote a nested loop, that iterates through each pixel of the image. Each one, having the RGB value bigger than 0 and smaller than 254 was meant to attract elements of the particle.
Once it finally worked, I decided to add some functions to the mouse and keyboard. I just wanted to totally mess up the drawing and redraw it again when the mouse is pressed.
The key changes the image to another one from the array. Once we reach the last one, we go back to the 1st one.
feel free to play