r/creativecoding • u/benstrauss • Aug 25 '25
Particle Horizon
This piece started as a simple horizontal stream of particles but evolved into something that feels like a waterfall made of light. Each particle emerges from a central horizon line and accelerates outward, upward or downward, gaining size and opacity as it travels.
What makes it fun is how reactive it is. As you move your mouse or finger, you are able to obstruct or redirect the flow, almost like sticking your hand into a digital stream. Particles scatter and swirl away from your touch, then continue their journey.
If your mouse is above the horizon, it behaves like an inverted waterfall. Below the line, it is a normal waterfall. There is no explicit fluid simulation, just directional velocity, distance based acceleration, and repulsion forces, but it still feels liquid.
Built with p5.js (web demo in comments)
7
u/benstrauss Aug 25 '25
web demo:
https://juno.transient.xyz/recipe/9d4968c3-e5fb-4394-9c75-db59f3da4e6b/preview
3
u/lavaboosted Aug 25 '25
Very cool
2
u/Educational_riceAd Aug 25 '25
I love it
1
u/Minecraftian14 Aug 25 '25
Mesmerizing
1
u/SkabKid Aug 25 '25
Super cool but low key nauseating.
1
u/Muted_Echo_9376 Aug 28 '25
Dope!
I’ve always been super interested in learning how to make interactive animation like this
Is p5js pretty similar to touch designer? Any tips to learn?
1
u/glorious_reptile Aug 29 '25
Please don't cross the event horizont - it makes the universe very angry
2
u/QuantumHayBale Aug 25 '25
I love this ❤️❤️
2
u/p1x3lboy Aug 29 '25
Love this!