Back to the journey

How it’s made

How to paint with tiles

Da Vinci to Van Gogh

Florent, 2026

GLSL on canvas, 216 tiles

inv. 179c1c8

To find out how a painting is made, you take it to the laboratory: X-rays, raking light, infrared. This site now takes its turn. The canvas beside this text is not an image: it is the site itself, the same tiles and the same shaders.

Direct light

The principle

The text stays in HTML: labels, timeline, colophon. Everything painted is WebGL, in a single fixed canvas laid over the page and transparent to clicks. The canvas and frame still exist in the DOM, empty, as markers. On every frame the scene reads their position and locks onto it, so the layout, the ScrollTrigger pin and Lenis scrolling drive the 3D without it knowing. This page does the same: scroll it to the end, and an empty rectangle is what carries the painting along.

The camera sits 1000 px from the canvas, with a field of view calculated so that one scene unit is exactly one CSS pixel on the plane of the canvas:

camera.fov = radToDeg(2 * Math.atan(viewport.height / 2 / CAMERA_DISTANCE));

Exam I

X-rays

A radiograph does not show the image: it shows what carries it. The Mona Lisa went through one at the Centre de recherche et de restauration des musées de France, along with infrared and ultraviolet.

Here, what carries the image is sheets. The canvas is cut into 12 × 18 tiles, 8 × 12 on a phone, each a plate of up to 16 × 16 cells, and all of them go to the graphics processor at once: one InstancedMesh, one matrix and a few attributes per tile. These figures are read from the engine on every frame, not written by hand:

Tiles
216
Draw calls
1
Triangles
110 592
Frames per second
–

Under the mesh, the sheets lift and settle. Only their position is written: the hollow and the shiver come from the paper dynamics, the same as on the site. On the X-ray you can read their seams, their cells, a nail at each corner and, when they lift, their edge.

A tile need not be square. The grid stays the same and the canvas takes on the proportions of the work: on Michelangelo’s fresco, they are strips of about 53 × 16 px. They overlap by 0.2 px; without that, rounding left one-pixel cracks in close-up.

dummy.scale.set(cell.width + TILE_OVERLAP, cell.height + TILE_OVERLAP, cell.depth);
dummy.updateMatrix();
mesh.setMatrixAt(i, dummy.matrix);

Exam II

Chronophotography

Étienne-Jules Marey fixed the instants of a movement on a single plate. Here is a tile’s flight as the site’s code draws it at random, enlarged and fixed forty times. Scrolling moves the fall forward. The hollow of each instant is real: the flight was played once, in full, with the paper dynamics at the site’s own pace.

It draws on the observations of Andersen, Pesavento and Wang (Journal of Fluid Mechanics, 2005) on falling thin plates: a dying pendulum swing, a descent oscillating twice as fast, an almost flat glide in the middle of each swing, a pitch-up and slight climb at the ends. Each flight is a sequence of GSAP keyframes, generated for each tile. So that its apparent size changes at a steady rate, depth is interpolated by distance to the camera, not in a straight line:

function depthAlong(fromZ, toZ, t) {
  const from = CAMERA_DISTANCE - fromZ;
  const to = CAMERA_DISTANCE - toZ;
  return CAMERA_DISTANCE - from * (to / from) ** t;
}

The entrance

This flight is the last gesture of a single unbroken shot, from the first pixel to the label. A black sheet covers the screen; the title is at first only a relief, revealed by the lamp, and gold spreads through the letters at the pace of the real loading. When everything is ready, the lamp passes behind the sheet: backlit, the face appears in the paper and the letters cut the light into rays, from a map baked once for this very title. Then the gold returns, and “Enter” turns golden: that is the signal, without a word to say so.

The click tears the sheet. A crack starts from the point touched, the sheet stays split for a moment, then a breath of air lifts the tiles and sweeps them off screen. The sheet was made of the painting’s tiles: the Mona Lisa is on the back, and each tile turns over in flight. Her gaze settles first, the tiles draw closer to the mouth, and the smile lands last, alone. Then the Gnossienne rises from the silence, a raking light wipes away the grid in its path, the room lights up and the camera pulls back to the page layout.

So that nothing breaks, the same tiles run from start to finish, arranged differently: 18 × 12 on a wide screen instead of 12 × 18, at the same size, with as many tiles in each quarter, so none changes side. Each has a single pose from sheet to canvas, and its exit ends exactly where its return flight begins. On the sheet, the camera stays very close, centred on the mouth; then it pulls back until the whole canvas is in view. The pose is multiplied by the ratio of its distance to the original distance: at every moment, a flight set for the latter gives the same image on screen, and both the eye and the smile still brush past the lens.

const home = ((tile.col + 0.5) / cols - 0.5) * painting.width;
world.x = painting.x + home + pose.x * poseScale;
world.z = pose.z * poseScale + arch * FLIP_LIFT;

The tiles return from off screen, whatever its width, and from all around it, spread by the golden-ratio sequence. The offset allows for perspective and for the camera pulling back while they land; otherwise a tile that had left in time would drift back into view and wait there for its turn.

The phrase

On screen, one tile lands at a time, never two together. The landings follow a musical phrase: the first ones slowly, the heart tighter, then the phrase slows and the smile lands alone. Each mark is a tile, at its true instant:

The gazeThe smile

The entrance does not set when a tile takes off but when it must touch the canvas; each takes off just early enough to get there. A floating tile needs a head start the first ones do not have, so they are not allowed to float; otherwise a single one would delay the whole entrance.

const budget = role ? Infinity : time;
const kind = role ? 'grazer' : undefined;
const flight = createFlight(quarter, duration, reach, budget, kind);

Exam III

Paper test

A sheet is not a rigid plate. Rather than an expensive, unstable cloth simulation, each tile is reduced to its natural modes: a hollow across the width, a hollow along the height, a twist. Each is a damped oscillator, integrated in JavaScript:

ẍ + 2ζω ẋ + ω² x = F

For this test, the whole Mona Lisa fits on one sheet, with the real shader and the real dynamics. Press it, pull it, let go: it receives only its position. The bars read its three modes.

Width hollow
Height hollow
Twist

Two forces set it moving. Air drag hollows the sheet like a parachute, edges trailing its motion. Inertia does the rest: when the sheet stops, its edges keep going, it shivers, then comes to rest. A wave also runs across the sheet as it glides through the air. The vertex shader sums the modes and recalculates the normal from their derivatives, so the light slides over the fold.

Exam IV

Raking light

Set at the very surface of a painting, a lamp lengthens the shadow of every roughness: craquelure and brushwork rise out of the paint. The mouse holds this lamp; on a phone, it wanders by itself.

And yet there is no roughness here. The relief is drawn from the paint itself: the slope of the luminance, read as a height map, tilts the normal. The site uses it with restraint, thicker for Van Gogh, smooth for Leonardo. This exam strips out the colour and pushes the relief 3.5 times further, so you can see it.

vec2 slope = reliefSlope(map, uv, texel, dx, dy) * relief;
normal = normalize(normal - slope.x * tangent - slope.y * bitangent);

On the site, the room changes its light with the work. It is normalised so that a flat canvas always receives the same amount of light: a raking light only deepens the relief. Here they are, laid low across the same canvas:

The magnifier here follows your hand across the canvas. It is calculated in canvas coordinates, not tile coordinates, so it passes from tile to tile without a seam. Texture gradients are taken after the lens distortion, so the mipmap chosen is as sharp as possible under the glass. It now lives only on this page: in the visit, it has given way to seven gestures.

Exam V

Cross-section

A cross-section shows the order of the layers. On Leonardo’s paintings, X-ray fluorescence measured, without taking a sample, glazes one or two thousandths of a millimetre thick. Here the section costs nothing: each plate is what the engine draws, copied on screen in the order it draws it. Closed up, the stack gives back the image.

  1. The plaster Around the canvas, the background is not plain black but lime plaster. Each pixel finds the point on the wall it is facing: the plaster stays put when the camera moves, and the low lamp brings out its relief. Calculated on every frame, it cost 48 hashes per pixel, too much for a phone. It is baked once on load into a repeating texture and now needs a single read.
  2. The ground A plate of ink and its grid, set back a little: a resting sheet that still shivers does not pass beneath it.
  3. The tiles All the painting, in one draw call. A row has lifted, so the next plate has something to show.
  4. The shadows A blurred signed-distance rectangle rather than a shadow map: cheaper and softer. The higher the sheet, the more its shadow is offset, wide, blurred and pale; once it lands, it has none.
  5. The haze The air that barely lights up around the lamp: for each pixel, the light scattered along the view ray, by an exact integral. It neither darkens nor hides anything. Shown here six times stronger.
  6. The dust Grains of very uneven sizes, most finer than a pixel, flecks that shine only when they send the lamp back to the eye, and a few fibres. The focus is on the canvas, which turns grains close to the eye into blurred discs. It never reacts to the mouse: in a beam of light dust seems still, and only the light moves. Shown here 2.4 times stronger.
  7. The grain Last, over everything else: a grain redrawn twenty-four times a second, like film, and a vignette. The image reads as a print, not a screen.

Exam VI

Gestures

Once the Mona Lisa has settled, scrolling moves from one work to the next: each tile flips 180°, lifted 90 px, in an order specific to the incoming work. Between two works, the outgoing face keeps the first and the incoming one carries the next. An order is only a delay per tile, calculated from a point in the work:

function spiral({ col, row }, center) {
  const dx = col - center.x;
  const dy = row - center.y;
  const angle = (Math.atan2(dy, dx) + Math.PI) / (2 * Math.PI);
  return Math.hypot(dx, dy) + angle * ARM_WIDTH;
}

Here are all six, with the real works and the real shaders. The edge of a sheet lights up here while it flips, so you can see the order, and this canvas keeps the page’s format. On the site, the canvas takes the proportions of each work, and each face reads it as “cover” during the flip so it never stretches.

  1. To Michelangelo The flip starts from the gap between the two index fingers and runs along the arms.
  2. To Vermeer The tiles flip in rings from the pearl. It glows, like the moon and stars later on: their halo is read from a very blurred mipmap of the texture.
  3. To Delacroix An uneven front climbs from the barricade to the flag, and gunpowder smoke wraps each sheet as it flips.
  4. To Hokusai A wave front sweeps the canvas; during the flip, each colour slips a little, like the blocks of a misregistered print, then falls back into place.
  5. To Monet Touches here and there, a little earlier near the sun; then the water of Le Havre trembles below the line of the quays.
  6. To Van Gogh A spiral around the moon; the impasto deepens as it passes, then the sky begins to flow along its swirls. Two reads half a period apart take over from each other, so the paint moves without ever drifting.

The right to touch

In a museum, you may not touch. Here, seven times, you may. After the story of each work, the hand gets one gesture, one only this painting allows. Each starts by itself, to make itself understood, and the hand takes over; with a finger, you rub sideways, and scrolling does the job if you touch nothing.

  • The gaze. The Mona Lisa’s smile comes undone, stops, then returns. The shader pulls the corners of the mouth by ten texels out of 1280, enough to erase it without the face looking retouched. A hand on the mouth drives it away.
  • The gap. The fresco gains a third arm, cut from the same image along a 92-point outline and lit like it. It never crosses the gap, and the closer it gets, the quieter the Miserere.
  • The curtain. The Girl’s black background hid a green curtain, found by research carried out at the Mauritshuis since 2018. Under the lamp, it returns. This is a reconstruction written in the shader: colour and folds are an interpretation.
  • The varnish. A fake yellow varnish covers the restored Liberty, calculated from the image: tint, dulled colours, veil. The hand takes it off, as the Louvre did in 2024, without claiming to show the earlier state.
  • The printing. The sheet is blank. Each colour in the print knows when it is printed: the line, the light blue, the deep blue, the sky and boats, finally the paper tone. The harder the hand presses, the more comes through.
  • The sun. In the circle of the lamp the colours go, and Monet’s sun disappears: on the site’s image it measures L* 53.0, and the sky 54.6. The music loses its treble at the same moment.
  • The sky. The hand stirs Van Gogh’s paint. A 128 × 128 image holds the current and rereads itself on every frame; it swirls, then the paint returns to its place. The cypress, cut out by hand, and the village do not move.

The varnish and the printing read a single 256 × 256 image that remembers where the hand has been. Smile, gap and sun need no extra image: a few lines of shader, using the lamp and hand that were already there.

The hand and the last leaf

The cursor is a printer’s hand: since the Middle Ages, readers have drawn it in margins to say look here. The click lands at the tip of the index finger, with no delay; the finger leads, and the hand turns towards where it is going rather than trailing behind the gesture. It has its own small canvas, lit by the same light as the tiles. Before Adam’s fingers, it stops without crossing the gap.

At the final wall, the timeline’s diamond comes loose and falls with the paper of the tiles. It returns on the back of the last painting, where it becomes the full stop of the name. The hand can still touch it.

Exam VII

Auscultation

Each painting has a piece chosen for what it evokes: a Gnossienne by Satie, hesitant as the Mona Lisa’s smile; Allegri’s Miserere, sung beneath the Sistine vault; Debussy’s La Fille aux cheveux de lin for Vermeer; Chopin’s “Heroic” Polonaise for Delacroix; his “Ocean” Étude for the Great Wave; Debussy’s Clair de lune for Monet; a Chopin nocturne for The Starry Night.

The piece changes as soon as the tiles start to flip, in two stages: the outgoing one drops and muffles; two seconds later the next rises gently, first as if heard from the next room, and opens up as the painting arrives. Here are the two curves the site plays:

The outgoing piece, a cosine over 6 s The next one, a sine to the power 1.5 over 12 s They cross low: together they dip about 10 dB around 5.5 s, less than the dynamics of the music.

Going back, the previous piece resumes where you left it. At its end, a piece starts over seamlessly, beneath its fading last seconds: a second player, shared by all, takes over. The sound button analyses the music live: its four bars follow the bass, mids and treble. Beneath, very discreetly, a few sound effects made for the site: the tearing sheet, the murmur of the room, a page turning, the air moved by a tile brushing past the lens.

Exam VIII

Infrared

Infrared passes through paint and stops at what lies beneath. On the Mona Lisa it found Leonardo’s underdrawing and his pentimenti, such as the outline of a finger on the right hand. This canvas has a drawing beneath it too: the layout. The seven spreads and the wall are traced from their real positions in the code.

The visit

Scrolling does not page through pictures: it leads a visit. Each work is told in three beats: the work, the artist, the technique. At each beat the camera looks at a point on the canvas at a set magnification, moving closer inside the canvas: whatever would overflow its place is not drawn, so nothing crosses the text. The whole visit is a single GSAP timeline, its time counted in screen heights.

After the story comes the gesture, then a time apart: the room lights dim and three details stay lit one after another, the smile, the pearl, Fuji, the moon… They exist only at that moment: during the story, nothing draws the eye away. Touching one suspends time: scrolling freezes, the camera moves in, the whole scene slows to 12%, the music recedes behind a filter, and the page rewrites itself to tell what you are looking at.

Seven spreads

As in a large art book, each work has its own layout: the canvas takes its place, the text aligns to its edges, and title and story fit the width left to them. The works are not cropped, and the tiles follow their proportions. The technique beat breaks the page, like a full-page plate: the canvas then fills the screen. In the right margin, as on the spine of a book: the year, turning like a mechanical counter, a rail of seven Roman numerals, and the sound, with the piece written vertically.

One text does not fade into the next. The old one clears line by line; the word waiting at the foot of the page, the catchword of old books, lights up and rises to open the text; the drop cap is stamped in gold, and the lines are revealed one by one. It all runs on masks and opacity, without cutting up the text. The drop cap is tuned for no letter in particular: its size and place are read from the real lines of the page and the ink of the letter, drawn in a canvas.

The wall

At the end, the camera pulls back to reveal the seven works, hung in two rows as in a salon. During the journey none has a frame: in the book the painting stands alone, and only on reaching the wall does it get its own, taken from a rectified photograph. Their sizes follow the hierarchy of the real surfaces, softened: at exact scale, the 2.80 m fresco would shrink the 26 cm print to a thumbnail. At the wall you touch no more: the hand stops six pixels from the frames.

Then the spotlights go out one by one, the camera returns to The Starry Night until it fills the screen, and the tiles flip one last time. On the back, the black sheet of the entrance, with the same shader, and the stamped name, which gold spreads through from left to right. The Mona Lisa was on the back of the first sheet; the signature is on the back of the last painting.

Exam VIII, continued

Pentimenti

A pentimento is the trace of a painter who changed his mind. This site has its own: the log of its making holds 73 mentions of what was rejected, replaced or removed. Each version below is a real commit, recompiled as it was and photographed at the same framing. Under the lamp, the page before; the timeline takes you down through the layers.

  1. The Mona Lisa’s page today: the canvas on the right, the large title and story on the left, on a visible plaster.

    fc6b8f7, 4 November, 7:47 p.m. Today, online. Titles in IM Fell English, rougher, plaster across the whole wall, and paint that is finally sharp.

  2. The first spread: a very large title in French Canon and a drop cap on the left, the canvas on the right, a rail of Roman numerals in the margin.

    7fba694, 3 November, 11:58 a.m. Seven works, seven spreads. The canvas takes its place, the text aligns to its edges, the title fits the width left to it, and the timeline becomes the spine of the page.

  3. Three columns: the story on the left, the canvas in the centre, the table of seven plates on the right.

    a550213, 2 November, 9:55 p.m. The single-shot entrance has just arrived. On the page, still three columns: the story, the canvas, the table of plates.

  4. Three columns, the Louvre frame in the centre, seven lines in the table of plates on the right.

    546d6fa, 2 November, 1:28 p.m. Seven whole works, each in its real frame. The table of plates grows to seven lines.

  5. The title in Fell type, the Louvre frame in the centre, four lines in the table of plates.

    e567ed0, 2 November, 1:44 a.m. John Fell’s types replace the fraktur, and the timeline becomes a table of plates. Still four works.

  6. The title and “La Joconde” in blackletter, the year large above.

    7b0e6bd, 31 October, 9:01 p.m. The “Gazette”: a fraktur for the titles. The capitals read badly: V read as B, J as I.

  7. The title and “La Joconde” in very thin Cormorant; a timeline of plain dates; a magnifier resting on the canvas.

    6353248, 31 October, 6:46 p.m. The first commit. Cormorant Garamond and Jost in spaced capitals, four works, the Louvre frame, a round filled sound button. The magnifier stays on screen throughout.

    The register

    What was painted over, chapter by chapter.

    The lettering

    • Bodoni Moda, then Cormorant Garamond in spaced capitals.
    • A fraktur for the titles: its capitals read badly, V as B, J as I, N as R, Q as D.
    • Cinzel Decorative, Texturina, Grenze, uncial, Pirata One: tried, set aside.
    • Hyphenation, which cut the words of the story.
    • Text following the contour of the drop cap. One edge is cleaner.

    The hand

    • The dot and its ring, as on a thousand sites.
    • The pinned paper, the thread counter, the brush, the pigment label, the quill and its eight variants, the plumb line, the stamp: objects from elsewhere.
    • The lamp, the diamond, the box, the corners: signs without a gesture.
    • The gold leaf, the most accomplished. It became the site’s full stop.
    • Fell’s asterisk, the gold arrow, the flame. Then the printer’s hand.
    • The magnifier, the same seven times, often looking away from the text. Seven gestures instead.

    The page

    • The three columns: Michelangelo’s fresco measured 640 × 291 px there at 1440 × 900.
    • The year in large type at the centre of the canvas, placed on the painting.
    • The enlarged counter, with motion blur and a gold rule.
    • The details drawer, which cut the story off mid-word.
    • A frame around each work during the journey. None in the book, one per work on the wall.
    • The wall in 4 + 3, reduced to 817 × 315 px.
    • Gold dots on the paint, then a flake of gold leaf. Now the lights go down.
    • The names of details in the text: people thought they could click them.

    The sound

    • A piece from each painting’s period: Josquin des Prez, Jacob van Eyck, Satie. Then a piece for what the painting evokes.
    • Debussy’s La Mer for Hokusai: the only free recording is for wind band.
    • Paper landing with every touchdown, too present.
    • The clicking of the counter, too much with the sound of the tiles.
    • The first chord at full volume. Tried at 4 s, at 6 s, then 12 s: the music now rises from its second phrase.
    • The Nocturne that wavered when you stirred the sky, removed during a hunt for slowness.

    The material

    • 360 identical discs for the dust.
    • The mouse’s wake in the dust: dust fleeing the hand no longer floats.
    • Tiles all coming in from the sides: two clouds and an empty middle.
    • The timeline jump as a full-speed scroll. Then the brush.
    • Polish on the wall, like the foot of a statue worn by visitors: invisible, even when strengthened.

    Exam IX

    Condition report

    A condition report says what holds and what is missing, without touching anything up. Lighthouse on the site, 4 November 2026, without a GPU:

    Performance, desktop
    96 à 99
    Performance, simulated phone
    92 à 93
    Accessibility
    100
    Best practices
    100
    SEO
    100

    The very first run after deployment, on a cold cache, gave 78 and 82: the figure moves from one measure to the next. The largest paint (LCP) is the title, present from the first frame: 0.3 s and 1.0 s on a throttled network, against 6.9 s and 42.4 s the day before, when it waited for the whole scene. The main thread blocks 40 to 130 ms on desktop and 250 to 280 ms on the simulated phone. On the GPU of an M4 Mac at Retina, the full tour runs at 59 frames per second, with a few long frames, mostly at text changes.

    What holds

    • 216 tiles in one InstancedMesh; the shadows too. 96 on a phone.
    • A resized window or a rotated tablet changes grid on the fly, without reloading: the buffers are made for the larger one, and the other draws only part of them.
    • Shaders compiled in parallel before the first frame (compileAsync).
    • Works as compressed GPU textures (KTX2, Basis Universal): cropped and given their mipmaps at build, transcoded in a worker to the GPU’s format. Nothing to decode on the main thread, and four to eight times less graphics memory.
    • Only the Mona Lisa is awaited before you can enter; the other six works arrive after the click, one after another.
    • On large screens, six works have an image four times richer, loaded on approach. It goes to the GPU when you stop scrolling, never during a flip, and only three stay in memory.
    • Only the current piece and the next are downloaded. The players unlock in the entrance click on 844 bytes of silence, instead of 24 MB of music.
    • Pixel density adapted to the device, and lowered if frames slow down. Rendering stops when the scene leaves the screen.
    • On this page, text first and scene second; it stops drawing three seconds after the last gesture.
    • Four languages in static HTML, each at its own addresses, generated from the French: if a text changes, its translation is no longer found, and the build says so.

    What is missing

    • The click on “Enter” blocks for about 300 ms in Chromium: sound must start within the gesture, and creating its context takes that long.
    • Never tried on a real iPhone or a real iPad.
    • Grain, dust and sky stop only with “reduce motion”: no pause button yet.

    Accessibility

    • With “reduce motion”, no entrance: each tile fades from one work to the next.
    • The entrance sheet is painted in WebGL: a real, invisible button sits on its cartouche, and the text stays for screen readers.
    • The timeline can be browsed by keyboard, and the left and right arrows move between works.
    • The story changes on scroll, but all its text stays in the page: a screen reader reads it straight through.
    • The entrance screen and open details are true modal dialogs: the rest of the page goes inert (inert), focus stays inside, Escape closes, and focus returns where it was.
    • A skip link leads to the content; foreign words and abbreviations are marked up.
    • Without WebGL, the Mona Lisa stays still and the whole story reads straight through, as without JavaScript. This page then becomes a simple article.
    • In print, the scene disappears and the story prints in full, with link addresses.

    Exam X

    Verso

    It remains to turn the painting over. On the back of the Mona Lisa’s panel, two walnut butterfly keys hold a split running from the top of the wood. On the back of this one, the black sheet of the entrance, with the same shader, and what one writes on the back of a painting:

    Da Vinci to Van Gogh

    Florent, 2026

    Three.js, GSAP, Lenis, Vite

    Works in the public domain

    Music under free licences

    inv. 179c1c8

    Design and development: Florent. Works and recordings come from Wikimedia Commons; the frames, from rectified photographs, and the performers are credited on the main page.

    Back to the journey