Domino tilings of the Aztec diamond     domino-tilings

Leonid Petrov


Simulation Info

Domino tilings of the Aztec diamond     domino-tilings

Leonid Petrov

Displays a colored grid of dominoes tiling an Aztec diamond shape, where four colors indicate domino orientations. The arctic circle separates frozen corner regions from a disordered interior. Controls set the diamond size and toggle between domino, dimer, path, and height function views.

This simulation demonstrates random domino tilings of an Aztec diamond, which is a diamond-shaped union of unit squares. The simulation uses a uniform measure to generate random tilings via the shuffling algorithm. The original python code was created by Sunil Chhita; this version is adapted for JS + WebAssembly. Visualization is done using D3.js.

The sampler works in your browser. Up to $n \sim 120$ it works in reasonable time, but for larger $n$ it may take a while. I set the upper bound at $n=400$ to avoid freezing your browser.

Update 2025-04-14: TikZ Code Generation

You can now get a TikZ code for the sampled Aztec diamond directly by clicking the button below. This feature supports dominoes and nonintersecting paths only.



code

(note: parameters in the code might differ from the ones in simulation results below)

Dear colleagues:

Feel free to use code (unless otherwise specified next to the corresponding link), data, and visualizations to illustrate your research in talks and papers, with attribution (CC BY-SA 4.0 (opens in new tab)). Some images are available in very high resolution upon request. I can also produce other simulations upon request - email me at lenia.petrov@gmail.com
This material is based upon work supported by the National Science Foundation under Grant DMS-2153869