Home▸Society & Economics▸Migration & Gravity Model — Interregional Flows (2D)

Migration & Gravity Model — Interregional Flows (2D)

Six stylized cities exchange animated migrant flow particles on a flat map, following the gravity model of migration M_ij = k·Pop_i·Pop_j / dist^γ — adjust the distance-decay exponent and two city populations to see every route react live.

Society & Economics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-migration-model ↗ Open standalone

This 2D companion drives the same gravity-model-of-migration formula as the 3D version on a flat canvas map: six cities sized by population exchange animated flow particles, a ranked panel lists the eight strongest routes live, and sliders for the distance-decay exponent γ and two city populations update every connecting line instantly.

⚙ Under the hood

2D gravity-model-of-migration lab: M_ij = k·Pop_i·Pop_j / dist^γ drives animated flow particles between six cities, with live sliders for γ and two populations and a ranked top-8 flow panel.

gravity model of migrationmigration flowsdistance decayspatial interaction modelpopulation gravity model

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

What did you find?

Add reproduction steps (optional)