A simple 2D fluid and gravity simulation with WASM and WebGL
I really like the look of the famous album art for Unknown Pleasures [1]. It was originally created by Harold Craft at the Arecibo Observatory from the signals of the first discovered radio pulsar [2]. I made a spectrogram that produces a similar look. It runs FFT in Rust and visualizes it with WebGL. [1]: https://en.wikipedia.org/wiki/File:UnknownPleasuresVinyl.jpg [2]: https://en.wikipedia.org/wiki/PSR_B1919%2B21
A simple 2D fluid and gravity simulation with WASM and WebGL launched on May 8, 2024 with 137 votes, #404 of 4,539 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.
In plain words
This is an interactive 2D particle simulation where small elements gravitate toward the user's cursor or touch location and can form stable orbits under the right conditions. Built with WebAssembly and WebGL, it's designed primarily as an experimental project for learning these technologies. The simulation functions as an engaging fidget toy, allowing users to play with physics by moving their cursor to watch particles respond and orbit in real-time.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
The little particles will gravitate to your cursor (or touch location), and can even enter stable orbits if the conditions are right! Mainly an excuse for me to experiment with wasm and WebGL, but it makes for a surprisingly good fidget toy.
Does a similar job
all alternatives →
Unknown Pleasures, a tiny web experiment with WebGL2023 · pouria.dev · ▲661A experimental audio visualizer built with WebGL (React Three Fiber and Three.js)
Strange AttractorsOct 2025 · blog.shashanktomar.com · ▲804I went down the rabbit hole on a side project and ended up building this: Strange Attractors(https://blog.shashanktomar.com/posts/strange-attractors). It’s built with three.js. Working on it reminded me of the little "maths for fun" exercises I used to do while learning programming in early days. Just trying things out, getting fascinated and geeky, and being surprised by the results. I spent way too much time on this, but it was extreme fun. My favorite part: someone pointed me to the Simone Attractor on Threads. It is a 2D attractor and I asked GPT to extrapolate it to…
- GIGravity – Interactive solar-system simulator, from Newton to EinsteinJun 2026 · qunabu.github.io · ▲217
Just for fun and self education, I've built this over a weekend to teach myself why orbits exist, not just show planets going around. Something that was never clearly explain to me in school. It opens with a guided tour that builds the idea up step by step: two bodies and the equal/opposite force, inertia (the Sun is removed and Earth just drifts straight), then "an orbit is falling and continuously missing," cosmic velocities with a little rocket, Voyager 1 & 2's real gravity assists (the clock runs the actual 1977–1989 dates so the planets orbit into their grand-tour alignment and the…
- IBI built a gravity simulator in pure CSS2022 · multiplanetary.website · ▲64
- IAI also made a three-body simulation2024 · three-bodies.sulami.xyz · ▲12
Somewhat inspired by a recent post here, I also made a three-body simulation on a whim, meaning to try out macroquad[0] (verdict: really nice!). Thanks to the engine I could trivially target wasm as well, so others can get mesmerized too. The source is available here: https://github.com/sulami/three-bodies [0]: https://docs.rs/macroquad/latest/macroquad
- IBI built an interactive 3D three-body problem simulator in the browserMar 2026 · structuredlabs.github.io · ▲60
More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 28d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 26d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 23d ago · openbot.run
Talanoa▲346Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 21d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 29d ago · corespeed.io
Source: Show HN post ↗ · launch text quoted in part