Home▸Algorithms & AI▸City Grid: Signal Patterns and Throughput (2D)

🚦 City Grid: Signal Patterns and Throughput (2D)

Top-down 2D view of a signal-controlled city grid where you resize the network, add cars and switch light patterns while a live panel tracks throughput.

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
City Grid: Signal Patterns and Throughput (2D) ↗ Open standalone

This 2D companion drives the same grid-and-signal logic as the 3D original from directly above: cars travel along horizontal and vertical lanes, queue at red lights, and release again on green, while sliders let you resize the road network, add or remove cars and slow down or speed up the signal cycle to watch congestion build or clear.

⚙ Under the hood

Top-down 2D view of a signal-controlled city grid where you resize the network, add cars and switch light patterns while a live panel tracks throughput.

traffic flowgrid networktraffic signalsgreen wavethroughputsimulation

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

What did you find?

Add reproduction steps (optional)