Santiago Sainz
Posts preshing.com

linkpreshing.com

Penrose Tiling Explained

Jeff Preshing explains how two kinds of triangle and golden ratio subdivision produce a Penrose tiling, with diagrams beside the Python.

Jeff Preshing makes a Penrose tiling approachable by keeping the representation small: two kinds of triangle, with vertices stored as complex numbers. One kind splits into two triangles, the other into three, using the golden ratio to place the new vertices. The diagrams sit beside the Python, so each subdivision is something a reader can check rather than take on trust.

The lovely detail is what he leaves undrawn. Omitting the triangles' bases lets adjacent triangles read as rhombus tiles. Starting from a wheel of ten triangles, the same local rules produce increasingly intricate patches of an aperiodic pattern. It is worth reading for that bridge from a compact algorithm to a visible structure, not just for the finished image.