
A sacred pattern made to be destroyed — the geometry of impermanence.
The Monks Arrive
They came in winter, when the air in Tawang was so cold it hurt to breathe and the monastery walls were white with frost. Four monks from Dharamsala, carrying nothing but cloth bundles and quiet smiles.
The head monk's name was Lobsang. He was old, with hands that were steady as stone and eyes that crinkled when he spoke. He bowed to the abbot and said, "We have come to build a mandala."
Tenzin, a fourteen-year-old novice, was assigned to help. He watched with growing curiosity as they unpacked their tools: metal funnels called chak-pur, small brass scrapers, and dozens of sealed jars.
"What is in the jars?" Tenzin asked.
"Sand," said Lobsang. "Coloured sand. Ground from stone — marble for white, lapis lazuli for blue, malachite for green, cinnabar for red."
The First Lines
The next morning, the monks cleared a large wooden table in the prayer hall. Lobsang took a long string coated in white chalk, stretched it from corner to corner, and snapped it against the surface. A perfect straight line appeared. He did this again and again until the table was covered in a precise grid.
"Every mandala begins with geometry," Lobsang told Tenzin. "Perfect circles. Perfect symmetry. If the centre is wrong by even a grain of sand, the whole pattern will be crooked."
Then the monks picked up the chak-pur and filled them with coloured sand. One monk drew a metal rod along the ridged surface of the funnel, creating a vibration that released a thin, controlled stream of sand. Grain by grain, colour by colour, the mandala began to grow.
The Pattern Reveals Itself
Over five days, Tenzin watched the mandala emerge. It grew outward from the centre in perfect symmetry — whatever appeared on the north side appeared identically on the south, east, and west. Lotus petals in red and gold. Gates with tiny guardian figures. Rings of flame. Diamond patterns within diamond patterns, each one smaller than the last, like looking into a mirror reflected in another mirror.
"Why is everything the same on all four sides?" Tenzin asked.
"Because the mandala represents the universe," said Lobsang. "And the universe has balance. Turn it any direction — it should look the same."
Tenzin noticed something else. The patterns repeated at different sizes. A small lotus at the centre was echoed by a larger lotus at the second ring, echoed by an even larger one at the outer edge. The same shape, the same proportions, at three different scales.
"It is like a tree," Tenzin said. "A branch looks like a small copy of the whole tree."
Lobsang smiled for the first time. "You are learning to see."
The Destruction
On the seventh day, Lobsang gathered everyone in the prayer hall. He chanted a prayer. Then he picked up a small brush and, without hesitation, drew it through the centre of the mandala.
Tenzin gasped. The perfect lines blurred. Red bled into blue. Gold scattered across white. The other monks joined, sweeping the sand inward, collapsing days of work into a mound of mixed sand in less than five minutes.
"Why?" Tenzin whispered.
Lobsang scooped the sand into a jar and walked to the stream behind the monastery. He poured the sand into the flowing water and watched it disappear.
"The mandala teaches two things," Lobsang said. "The first is that you can create something perfect through patience, precision, and skill. The second is that nothing lasts. Not the mandala. Not the monastery. Not us."
"The purpose of the mandala is not to exist. It is to be made, and then to be released. That is what impermanence means."
Tenzin watched the last grains vanish into the stream. The mandala was gone. But the geometry was still in his mind — the perfect symmetry, the repeating patterns, the mathematics of something sacred.
That, he realised, was the part that lasted.
The end.
Choose your level. Everyone starts with the story — the code gets deeper as you go.
Here is a taste of what Level 1 looks like for this lesson:
import turtle
t = turtle.Turtle()
t.speed(0)
turtle.Screen().bgcolor("black")
colors = ["#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FFEAA7","#DDA0DD"]
def petal(size):
for _ in range(2):
t.circle(size, 60)
t.left(120)
for ring in range(1, 6):
t.color(colors[ring % len(colors)])
for i in range(8):
t.penup(); t.goto(0,0)
t.setheading(i * 45)
t.forward(ring * 30); t.pendown()
petal(ring * 15)
# What happens if you change 8 to 12?
turtle.done()This is just the first of 6 coding exercises in Level 1. By Level 4, you will build: Build a Mandala Generator.
By Level 4, enrolled students build: Build a Mandala Generator
Free
Level 0: Listener
Stories, science concepts, diagrams, quizzes. No coding.
You are here
Level 0 is always free. Coding levels (1-4) are part of our 12-Month Curriculum.
The mathematics of pattern, balance, and self-similarity — from sand mandalas to snowflakes.
The big idea: "The Sand Mandala" teaches us about Geometry, Symmetry & Fractals — and you don't need to write a single line of code to understand it.
Take a piece of paper and fold it exactly in half. Cut any shape you like along the fold. Now unfold it. Both sides match perfectly. You have just created bilateral symmetry — where one half mirrors the other across a line. Your face has it. Butterflies have it. Leaves have it.
But symmetry goes further. Look at a starfish. It does not have one mirror line — it has five. You can also rotate a starfish by 72° and it looks exactly the same. This is rotational symmetry. A square has 4-fold rotational symmetry (90° turns). A snowflake has 6-fold (60° turns). A circle has infinite rotational symmetry.
A mandala uses both types at once. Stand at the centre and look outward — the pattern is the same in every direction. That is rotational symmetry. Draw a line from any edge through the centre to the opposite edge — the pattern on one side mirrors the other. That is reflective symmetry.
Try this: Find a photograph of your face. Cover the left half, then the right half. Do the two halves look exactly the same? They do not, because human faces have approximate symmetry, not perfect symmetry. A mandala, by contrast, is mathematically exact.
Key idea: Symmetry means a shape looks the same after a transformation — flipping (reflective), rotating (rotational), or both. Mandalas combine multiple symmetries from a single centre point.
Look at any tiled floor. The tiles fit together with no gaps and no overlaps. This is called a tessellation. It sounds simple, but not every shape can do it.
Why? It comes down to angles. At every point where tiles meet, the angles must add up to exactly 360°. A square has 90° corners. Four squares meet at a point: 4 × 90° = 360°. Perfect. A regular hexagon has 120° corners. Three hexagons: 3 × 120° = 360°. Perfect. An equilateral triangle has 60° corners. Six triangles: 6 × 60° = 360°. Perfect.
Now try a regular pentagon. Its corners are 108°. Three pentagons: 3 × 108° = 324°. That leaves a 36° gap. Four pentagons: 108 × 4 = 432°. Too much. You simply cannot tile a floor with regular pentagons.
Bees discovered this millions of years before mathematicians did. Honeycomb cells are hexagons because hexagons tessellate perfectly and enclose the most area for the least perimeter.
Check yourself: If you had octagonal tiles (135° corners), could you tile a floor with them alone? No — but you can if you add small squares in the gaps. Two octagons (270°) plus one square (90°) = 360°. That is the pattern on many bathroom floors.
Key idea: Only three regular shapes tessellate a plane by themselves: triangles, squares, and hexagons. The rule is simple — the corner angles must divide evenly into 360°.
Access all 130+ lessons, quizzes, interactive tools, and offline activities
Break a branch off a tree. Hold it up. The branch has smaller branches, and those have even smaller twigs. The branch looks like a miniature copy of t...
Why do some things just *look right*? Part of the answer is a number: **1.618**, known as the **golden ratio** (phi, φ)....