How can a ruler and a compass cover a whole mosque in patterns?
Many of the most intricate patterns in Islamic art are drawn on hidden grids that need only a ruler and a compass, and one scholar calls them early algorithms.
▶ Start the storyA ruler and a compass are enough because the patterns are built from a few simple shapes on hidden grids. Many designs are made from repeated squares and circles, overlapped and interlaced, and they include a wide variety of tessellations, patterns of shapes that fit together without gaps. Such patterns can extend indefinitely, which suggests infinity, and they are constructed on grids that need only a ruler and compass to draw.
Take the 8-pointed star, a favourite motif of Islamic tilework. It is made of two squares, one rotated 45 degrees with respect to the other. Many designs start with a circle, which symbolizes unity and diversity in nature. At the 15th-century mosque in Yazd, a circle with six touching circles around it makes a regular hexagon, and from that grid grows a six-pointed star pattern. Then comes a twist: the finished tile pattern is overlaid with a blue that partly hides the plan underneath.
Why geometry? Islamic art mostly avoids images, and this pushed artists to explore non-figural art and caused an aesthetic shift toward mathematically based decoration. The patterns grew more complex over time, from simple stars and lozenges in the ninth century, through 6- to 13-point patterns by the 13th century, to 14- and 16-point stars in the sixteenth.
Step 1: A circle
Symbol of unity and diversity in nature
Step 2: Six circles around it
All touching at the centre, forming a regular hexagon
Step 3: A six-pointed star
Built on that grid, surrounded by six smaller hexagons
Step 4: Blue on top
Partly hides the plan underneath
The artist Roman Verostko argues that such constructions are in effect algorithms, making them forerunners of modern algorithmic art. A small set of rules, repeated with care, covers a whole wall.
836
8-pointed stars and lozenges at Kairouan
9th century
Simple stars and lozenges
13th century
6- to 13-point patterns
16th century
14- and 16-point stars too
Quiz me
0/3
Recap
A hidden grid of circles and squares, repeated, makes endless star patterns, drawn only with a ruler and a compass.
💡 A trick to remember it · Circle, then squares, then repeat: start with a circle, turn a square 45 degrees, and a star appears.
Surprising fact · The Yazd design hides its own construction grid under blue tracery.
Connects to
- 🍯 How do thousands of tiny niches turn a square room into a dome?
- 🕌 What makes a building a mosque?
- 🟡 Why does the Dome of the Rock look like a Byzantine church?
- 🪸 Who discovered geometries where triangles add up to less than 180 degrees?
- 🔁 Why can't some equations be solved with a simple formula?
- Golden ratio
- Islamic golden age
Sources (1)
No source, no claim. Every fact in this lesson (16 claims) cites at least one of these.