Scatter 2 million particles and move them as
P += sin(P.yzx) - 0.19 * P
and the shape they form is strangely attractive.

#AlgorithmicArt #CreativeCoding
#Processing #glsl #shaders

Here's a (nearly) looping animation of that attractor once the points have settled down.

#AlgorithmicArt #CreativeCoding
#Processing #glsl #shaders

The - 0.19 * P term pulls the particles back towards the center. By weakening that constant, we can see more of the sine wave motion. Too weak just looks like noise, but 0.08 looks particularly nice.

P += sin(P.yzx) - 0.08 * P

#AlgorithmicArt #CreativeCoding
#Processing #glsl #shaders

@scdollins

When I was playing with 2d attractors, animating the variables in the formulas looked very cool. You can also try slowly changing P while it's running.

https://youtu.be/8ttGBReE5gg

- YouTube

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.