1 / 27

Patterns as creative systems

From tiles
to systems

A view across the rooftops and streets of Barcelona

It’s Barcelona.

What do they all have in common?

A Barcelona pavement of grey cement Flor de Barcelona panot tiles, seen at a low angle

Five designs. The city kept one.

Barcelona, 1906 · a competition to pave the city

561
The flower panot, Escofet design number 561, the winning Barcelona pavement tile
Florde Barcelona
the one
that won!
Panot design number 562, four tabs with circles
562 tabs & circles
Panot design number 563, the skull
563 skull
so close! 💀
Panot design number 564, concentric circles, nicknamed ensaïmada
564 ensaïmada
Panot design number 565, four tabs, the best at draining
565 four tabs
drains best ✎

The city itself is one rule.

Aerial view of Barcelona's Eixample, Ildefons Cerdà's grid of identical octagonal blocks with 45-degree chamfered corners
Mediterrani AV. DIAGONAL one block, one rule

L'EixampleCerdà · 1859 · one block, one rule

This is
my floor.

A Barcelona Modernisme hydraulic-tile floor with a geometric pattern, next to a marble fireplace
Hydraulic tile

Hydraulic tileBarcelona · Modernisme

I didn't draw the floor.
I wrotecoded one rule.

the creative act was the rule

It starts with one tile.

Same tile, four times. Click each one to turn it.

Hydraulic tile how one tile is made ✎ 1. one shape R = 20 cm 45° ↗ struck from one corner one quarter-circle 20 × 20 cm 2. the rule 0° 90° 180° 270° position decides the turn → the four arcs meet = the flower the recipe ✦ France · 1850s → Barcelona made it art 20 × 20 cm cement + pigment pressed, no kiln nothing is ever redrawn.
Motif
Pigment

Take the rule away.

no rule · just noise · same tile, same four angles · click to toggle

The same flower.
Three languagesmaterials.

SVG · CSS · three.js, one rule

The flower, in SVG.

flor.svg
<svg viewBox="0 0 100 100">
  <circle cx="50" cy="50" r="17"/>
  <circle cx="32" cy="32" r="17"/>
  <circle cx="68" cy="32" r="17"/>
  <circle cx="68" cy="68" r="17"/>
  <circle cx="32" cy="68" r="17"/>
  <!-- petals appear where the circles overlap -->
  <circle cx="50" cy="50" r="13" fill="#eae1ca"/>
</svg>
  1. Okay, so we start with just one circle. Literally one swing of a compass.
  2. Then I add four more, all the same size, out on the diagonals.
  3. And here's the nice bit, I never actually draw the petals. They just appear on their own, wherever the circles overlap.
  4. Then one more circle in the middle to open up the centre, and there she is. The Flor de Barcelona.

And again, in CSS.

flor.css
.ring { width: 34%; aspect-ratio: 1;
       border: 7cqw solid #eae1ca;
       border-radius: 50%; }
.ring.c  { left: 33%; top: 33%; }
.ring.tl { left: 15%; top: 15%; }
.ring.tr { left: 50%; top: 15%; }
.ring.br { left: 50%; top: 50%; }
.ring.bl { left: 15%; top: 50%; }
  /* petals fall out where the borders overlap */
.hole { inset: 37%; border-radius: 50%; }

And for real, in three.js.

flor.js
const geo = new THREE.PlaneGeometry(1, 1);
const mat = new THREE.MeshStandardMaterial({
  color: 0x969287,       // grey cement
  normalMap: flor,      // the flower, carved IN
  roughness: 0.6,
});
const tile = new THREE.Mesh(geo, mat);
scene.add(tile);  // drag to orbit
  1. This one's actually 3D. We start with a flat square.
  2. We give it a cement look, grey and a bit rough.
  3. Then, with a normal map, we fake the depth using just light and shadow, so the flower looks pressed in, not carved.
  4. Add a light, and now you can grab it and spin it around. A real 3D tile, still no image.

The tile knew four angles.
The grid knows infinity.

tile.css
.tile::after {
  /* the mould: one fixed turn */
  --dx: var(--col) - var(--cx);
  --dy: var(--row) - var(--cy);
  rotate: atan2(var(--dy), var(--dx)) + 135deg;
}
  /* drag --cx / --cy: the whole floor re-aims */
The centre sweeps, and every tile re-aims to face it
  1. A real tile only ever knows four angles.
  2. But CSS can do real geometry now. Actual maths, not just styling.
  3. So every tile works out its own angle. I move this point, and the whole grid follows, live.
  4. The real tile could never do that. In code I'm not stuck with four, I can build any shape I want.

My floor, in code.

floor.css
.cell--fan {
  background: radial-gradient(circle at 0 0,
    var(--color) 0 62%, transparent 63%); }
.cell { rotate: var(--rot); /* 0 90 180 270, by position */
.floor { display: grid;
  grid-template-columns: repeat(6, 1fr); }
  /* swap the motif + 2 pigments → 588 tiles */
  1. So each tile starts as one little shape, drawn with one line of CSS. This one's a simple fan.
  2. Then I make four copies and turn each one depending on where it sits, and together they close into a pattern.
  3. I repeat that across a grid, and there's a whole floor, nothing drawn twice.
  4. And if I swap the shape and a couple of colours, that same rule gives me every tile you see here.

Trencadís.

Trencadís on the serpentine bench at Park Güell, Barcelona
Park GüellGaudí & Jujol
The trencadís-clad facade of Casa Batlló, Barcelona
Casa BatllóGaudí
Trencadís on the ceiling medallions of the Hypostyle Hall at Park Güell
Park Güell · the ceilingJosep Maria Jujol
The Park Güell dragon by Gaudí, its body a mosaic of broken ceramic tile, trencadís

Code was where I built the design.
Now it's where I find it.

Constraints don’t limit creativity. They generate it.

The beauty was never on top of the system. It was the point of it.

Even the chocolate is a tile.

Gràcies.

tiles.systems

Speaker notes

Presenter controls

→ Space
Next slide
←
Previous slide
✎
Type the city to open your speaker-notes tab (hidden)
F
Fullscreen
Home / End
First / last slide
?
This help