Ramaparticles | a small universe to play with

Hundreds of particles fall towards the pointer. They swing past, loop back, collide with the walls and settle into orbits that never quite repeat. With a mouse, a click fixes the centre of gravity in place and another click sets it free to follow the pointer again. On a phone or tablet, a tap places the centre of gravity and a drag carries it around.

Ramaparticles began as a BBC BASIC program written many years ago. This new version keeps the original physics and adds trails that fade, a choice of colour schemes, a steady downward pull and the freedom to rewrite the law of gravity itself.

Photosensitivity warning: Ramaparticles shows fast-moving, flashing and pulsing light with bright colour changes. For a small number of people, patterns like these can trigger seizures. Please do not play if you have photosensitive epilepsy, and stop at once if you feel dizzy or unwell.

Play full screen Open in its own window

ramapani.com

Ways to play

Keyboard

P or Space to pause, N for a random new universe, B or Esc to restart the current one, R to switch between attraction and repulsion, S and F for slower and faster, T for trails, W for walls, G for the downward pull, U for pulsing, K for the kaleidoscope, H to change shape, + and − to zoom, C to save a screenshot, X to fix or free the centre of gravity, O for settings and Z for full screen.

Ramaparticles Supporters' Edition

Supporters on Patreon can play the enhanced edition, with new physics to explore:

  • Vortex: a twist in gravity that spins the cloud into a spiral galaxy
  • Breathing gravity: the pull swells and fades in a slow rhythm to breathe along with
  • Black hole: whatever reaches the centre vanishes and is reborn at the edges
  • Accretion: particles that touch merge, building planets until only giants remain
  • Shockwave: a double-click or double-tap blasts a ring of force outwards
  • Wall sparks: hard impacts with the walls throw off showers of sparks
  • Save and load favourite universes as files

The original BBC BASIC version

Ramaparticles was first written in BBC BASIC, the language that taught a generation of us to program. The web version on this page is a faithful port of that original, with the same physics at its heart.

The original BBC BASIC version, including the full source code and the executable, will be made available in the Patreon Members area. It is a chance to read the program line by line, run it as it first ran and change it for ourselves.

More from Ramapani

Ramaparticles sits alongside a growing collection of small apps for calm, focus and curiosity:

Embed Ramaparticles on any website

Copy and paste the code below into a web page. The embed carries the settings currently on the screen above, so set up a favourite universe first and the code updates as the sliders move.

The embedded version keeps every control, including full screen, settings and share links. The height can be changed to suit the page. The same code is also available from the settings panel under "Copy embed code".

Back to topExplore the tag cloudStep into the inner room

More to discover

Back to topπŸŒ₯️