Home▸Space & Astronomy▸Planetary Formation 2D

🪐 Planetary Formation 2D

2D Canvas companion to the 3D Planetary Formation simulator: watch dust grains collide and stick into planetesimals through runaway accretion in a protoplanetary disc.

Space & Astronomy2DModerate60 FPS📱 Mobile-adapted
2d-planetary-formation ↗ Open standalone

About this simulation

This is the 2D Canvas companion to the 3D Planetary Formation simulator. It runs the same N-body core-accretion model — inverse-square protostar gravity, linear gas drag, and inelastic sticking collisions below a velocity threshold — but draws bodies directly onto a flat canvas instead of through Three.js/WebGL, so it starts up faster and works on weaker hardware.

🔬 What it Shows

Dust grains (red) collide and merge into pebbles, rocks, planetesimals and eventually protoplanets (blue), colour-coded by mass tier, orbiting a glowing protostar inside a dashed ~3 AU snowline ring.

🎮 How to Use It

Pick a disc preset or drag the particle count, density, sticking velocity and drag sliders yourself, then press Run. Click or drag inside the disc to seed extra dust.

Frequently asked questions

How is this different from the 3D Planetary Formation simulation?

Same underlying N-body accretion physics — inverse-square gravity, gas drag, and inelastic sticking collisions — but rendered directly with the 2D Canvas API instead of Three.js/WebGL, so it loads faster and runs on lower-end devices.

What do the particle colors mean?

Colour encodes mass tier: red dust under 3 solar-mass units, orange pebbles, yellow rocks, green planetesimals, and blue protoplanets above 60 units, with a white rim added once a body exceeds 30 units.

Can I add particles myself?

Yes — click or drag anywhere inside the disc (between roughly 40 and 320 pixels from the star) to seed a new dust grain on a near-circular orbit at that radius.

⚙ Under the hood

2D Canvas companion to Planetary Formation — same accretion-disc physics, rendered without WebGL.

PlanetesimalsAccretionSolar SystemFormation

2D · Canvas 2D renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)