AI authored to showcase ironpad capabilities.
A particle system simulates many small, independent entities — particles — to create effects like fire, smoke, fountains, explosions, and rain.
Each particle has:
(x, y) — where it is(vx, vy) — how it's movingEvery simulation step:
The result is an organic, flowing motion created from thousands of simple rules.
We simulate a fountain — particles shoot upward from a central emitter, arc through gravity, and fade as they age. Color and size encode the particle's remaining life.
0.0 for zero-G particles, or positive for rain falling downParticle systems benefit from raw throughput — updating thousands of particles per frame. Rust compiled to WASM gives near-native performance right in the browser, making this kind of simulation buttery smooth.