Look at this square for a moment.
It looks like a maze, or the floor plan of a very odd building. It is a sentence. Give it a minute before you read on, because the answer is coming.
Builders in Iran and Central Asia did this for real, in Arabic and at the scale of whole buildings. From across a courtyard you see a handsome pattern in blue and brick. Stand there longer and the pattern starts to spell. Some buildings ended up covered in the names of God, Muhammad and Ali, with the words laid into the wall itself.

If you have ever stood in front of a mosque and wondered what to call all this, it has names. The writing is khatt, from an Arabic word for line. The star and knot designs are girih, Persian for knot. The curling plant designs are arabesque. In Morocco, the cut tile mosaic is zellij. They share walls so often that the art keeps blurring the line between a word and a picture.
Each of them also had a science problem hiding inside it.
Bricks are pixels
The square says: This is not a pattern. This is a wall saying hi.
Every letter in it is three squares wide and five tall. Go much smaller and letters stop being readable, the same limit that designers of early computer screens ran into. These builders got there more than 800 years sooner.
Their version is called banna’i, the builder’s technique. Glazed tiles alternate with plain bricks, so each spot on the wall is one of two things: on or off. That is a one-bit image. One of the earliest bits of script set into brickwork is on a minaret in Ghazni, in what is now Afghanistan, from about 1100. It spells out the name of the ruler.
Notice what the material did to the alphabet. A wall of square bricks has no curves in it, so the letters had to give theirs up. The result is square Kufic, a script made of right angles, with one square of space between strokes. It looks like a style. It seems to have begun as a limit of the material. The brick decided.

It is also hard to read, even if you read Arabic well. It turns corners and runs upside down, just as your phone had to. We know of no note from the makers saying who they expected to work it out.
A letter is a recipe
A pen has the opposite problem. It can make any curve at all, so what stops every scribe’s letters from drifting a little further off every year?
The answer is credited to a man from Baghdad named Ibn Muqla, born around 886, who was the caliph’s chief minister three separate times. His idea, or his brother’s, was to stop drawing letters by eye and measure them with the pen.
Press the cut tip of a reed pen onto paper, and it leaves a small diamond, the dot. That dot is the unit. Stack dots point to point, and you get the height of the alif, the tall straight first letter of the alphabet. How many dots depends on the script, and seven is one standard example. Now draw a circle with the alif as its width. Every other letter gets its size from those three things: dot, alif, circle.
There are no inches in this. It is all ratios, which is why it works at any size. A nib 2 millimeters across gives an alif of about 14 millimeters. A tool ten times wider gives 14 centimeters, in the same proportions, ready for a wall. It is the same idea that lets a Tibetan painter build a Buddha in finger widths.
The rest of the story is grim. Ibn Muqla plotted against the general who had taken power in Baghdad, and he was jailed and lost his right hand. Later accounts say he went on writing with his left. Then his tongue was cut, and he died in prison in 940.
Not one page in his hand is known to survive. His system does. Another Baghdad calligrapher, Ibn al-Bawwab, perfected it, and naskh, one of the scripts credited to Ibn Muqla, is still used in Arabic printing today.

The room that says “I”
Once you can write on anything, you can make a building talk, and the Alhambra in Spain does exactly that.
Its court poets, including Ibn Zamrak, wrote verses for particular rooms, and some are written in the first person, so that the room itself speaks to you. It tells you how lovely it is, too, with no modesty at all. Around these poems, one motto repeats across the palace: there is no victor but God.

Those pale walls were not pale when they were new. Studies show letters painted gold or silver, or white with black outlines, against grounds of red, blue and turquoise. What you see today is what is left after the color wore away.
Letters that grow as they climb
Now the problem that belongs to your eye.
What reaches your eye is how much of your view a thing fills, and that angle shrinks as the thing gets farther away and tilts away from you. Your brain corrects for some of this, but not all of it. So writing that stays the same height all the way up a tall wall looks smaller and smaller as it rises.
You can work out the size of the trouble. Stand 20 meters from a wall, cut your view into equal slices, and see how much wall each slice covers.
The Taj Mahal, finished in the 1640s, carries about 670 meters of writing, cut from black marble and jasper and set into white marble. The man in charge was a calligrapher from Shiraz named Abdul Haq, whom the emperor titled Amanat Khan. His are the only signatures on the building, and the emperor once rewarded him with an elephant.

His higher panels are written larger, to offset the view from below.
Here is where the evidence runs out. Plenty of guidebooks say every line looks exactly the same size from the ground. The more careful sources say only that the higher script is “slightly larger,” and we could not find anyone who has published the measurements. On our example wall, a full correction would mean letters three times the size, so he may well have gone only part of the way, and left the rest to your brain. Someone with a good pair of binoculars and a free afternoon could settle it.
Built face down
Patterns have their own science, and they start easily enough. Draw two squares in a circle, one turned 45 degrees from the other. Keep the outline and you have an eight-pointed star. Repeat it, and the gaps between stars turn into crosses you never drew.
The making is harder than the drawing. In zellij, a craftsman takes a glazed square about 10 centimeters across and chips it into shape with a small hammer. The shapes are learned by heart. Then the pieces are laid on the ground face down, fitted together, and bonded with plaster across their backs. The maker builds a dazzling star panel while looking at the wrong side of it, and only sees it when it is lifted.

Five-pointed stars are harder still. A regular pentagon has corners of 108 degrees. Three of them make 324, which leaves a gap, and a fourth will not fit. So how do you get five- and ten-pointed stars to run across a whole wall?
You cheat, beautifully. That same Topkapı Scroll, about 97 feet long with not one word of explanation, gives the trick away. In one drawing, broken orange lines outline a few tile shapes, and thin black lines draw stars on top of them. The stars are not the structure. The tiles are, and they fit together in ways a star on its own cannot. Draw a star inside each tile, with its lines leaving the middle of every side at the same angle, and a line leaving one tile enters the next perfectly straight.
Then erase the tiles.
This is why these walls look impossible. The thing holding them together is the one thing you are not shown.
Tenfold order turned up in science too, and scientists did not believe it. Crystals were supposed to be repeating patterns of atoms, and a repeating pattern cannot have tenfold symmetry. In 1982 Dan Shechtman saw a tenfold pattern in a metal alloy anyway. He was asked to leave his research group, and he won the 2011 Nobel Prize in Chemistry. Some researchers think a shrine in Isfahan from 1453 got near that kind of order; others have looked closely and disagree. Either way, makers with a compass and a straightedge were filling walls with tenfold stars long before chemists called tenfold order impossible.
Gold with no gold in it
One kind of tile has a shine that seems to move across its surface, like gold in candlelight. Test it in a lab and you find no gold.
Potters in Iraq worked out this luster in the 800s. They painted a fired, glazed bowl with silver and copper salts mixed into clay and vinegar, then fired it again at about 600°C in a kiln starved of oxygen. In that smoky heat, metal atoms come loose and clump together in the surface of the glaze.
Modern labs have put early Iraqi luster in a synchrotron, and the silver particles came out at 5 to 20 nanometers across. A human hair is about 70,000 nanometers wide, so:
70,000 ÷ 20 = 3,500
That is thousands of particles across the width of one hair. A speck that small handles light according to its size as well as its substance. Pack silver specks tightly enough and the layer throws back a golden shine, even though no gold is present. Copper-rich lusters run amber and red instead.
If this sounds familiar, it is the same lesson as the blue jay’s feather: a color can come from how small a thing is built. The potters could not have known about nanoparticles. They had recipes, a kiln and a lot of ruined bowls, since the process was always unpredictable.
One panel holds nearly everything in this post. It was probably made in Kashan and is dated 1262, and it now sits in the Victoria and Albert Museum in London: star tiles and cross tiles, painted in luster and edged with writing.

When the words turn back into pattern
We started with a pattern that turned out to be words. The art ends up going the other way too.
Persian calligraphers warmed up by writing the same letters over and over on one sheet, at every angle, until the page was thick with ink. It trained the hand. They called it siyah mashq, black practice. Then people noticed how striking these sheets were, and by the 1800s they were being made and kept as art, with the letters repeated regardless of what they meant. Even a king did it. The Metropolitan Museum owns one by Muhammad Shah of Iran, dated October 1844.

So a practice page became a picture that nobody needed to read. Which is how you met that square at the top.
Try it
- Write in bricks. On graph paper, write a short sentence around the edge of a square. Make each letter three squares wide and five tall, with one square between letters. When you reach a corner, turn the paper a quarter turn and keep going, working inward. Color in the letters, then see how long a friend takes to find it.
- Build an alif. Hold a chisel-tip marker at an angle and press it down to make a diamond. Stack seven, point to point. Draw a circle that wide, then try fitting a capital letter inside it. Do it again with a fatter marker and watch the letter grow while its shape stays the same.
- Fight your eye. Write one word on two sheets of paper, the second one twice as large. Tape the small one at eye level and the large one as high up a wall as you can reach. Stand close to the wall and look up. Which one looks bigger now?
- Go black. Fill one sheet with a single letter, turning the page as you go, until there is hardly any white left. Then hang it up.
Where this comes from
- Banna’i and Kufic — the builder’s technique, the Ghazni minaret, whole buildings in sacred names, and square Kufic as a script of bricks used like pixels
- Islamic calligraphy, Girih and Arabesque — the names of the art
- Ibn Muqla — his career, his arrest and death, and the three measures of the proportioned script
- The history of Islamic calligraphy — Asian Art Museum, San Francisco, on the rhombic dot, the seven-dot alif and the circle
- Key master calligraphers — Calligraphy Qalam, for the account of his writing with his left hand
- Alhambra — the first-person poems, the motto and the original colors
- Amanat Khan Shirazi and Taj Mahal — the inscriptions, the signatures, the elephant, and the higher panels written slightly larger
- Zellij — hand-cut tile, shapes learned by rote, and panels assembled face down
- Mathematics and geometric ornamentation in the medieval Islamic world — Jan P. Hogendijk, on the Topkapı Scroll
- Girih tiles — the tiles and the lines drawn across them
- Decagonal and Quasi-Crystalline Tilings in Medieval Islamic Architecture — Peter J. Lu and Paul J. Steinhardt, Science, 2007, and Modularity and Hierarchy in Persian Geometric Ornament — Peter R. Cromwell, Nexus Network Journal, 2016, which disputes it
- The Nobel Prize in Chemistry 2011 — Shechtman’s discovery
- Lusterware — the recipe, the firing and the origins in Iraq
- Shedding light to historical glaze decorations — ALBA Synchrotron, on particle sizes in early Iraqi luster, and a 2014 study of early silver luster — Gutierrez Neira and colleagues, on why the silver has to be concentrated
- Tile panel, 1262 — Victoria and Albert Museum
- Siyah mashq and Album page by Muhammad Shah Qajar — The Metropolitan Museum of Art
The pictures, shown without changes except resizing:
- The Shah Mosque niche — seier+seier, CC BY 2.0
- The Topkapı Scroll panel — public domain
- Ibn al-Bawwab’s Qur’an — public domain
- The Court of the Myrtles — Jebulon, public domain
- The Taj Mahal band — Gary Todd, CC0
- The zellij wheel — Carlos ZGZ, CC0
- The star tile — The Metropolitan Museum of Art, CC0
- The practice sheet — Asadollah Shirazi, public domain
The five diagrams are original drawings made for this post. None is a tracing of a historic work, and the square at the top is in English on purpose. The slice figures and the particle count are our own arithmetic.