Light

Experiment #07 · November 2026

Dry garden

A garden of stones and raked gravel, composed at random with each tap. Groups of stones set on moss, among straight lines. Pick up the rake and draw your own furrows; with your first touch, a koto starts to improvise softly.

The idea

A karesansui, or dry garden, replaces water with gravel. The stones are islands or mountains; the raked lines are the water flowing around them. The gravel is raked in straight parallel lines, and often in circles around the stones, like ripples. Here, the circles are yours to draw.

Each composition is drawn at random, but by a gardener’s rules: groups of one to three stones, an odd number in all, never in a line, spaced wide enough for the rake to pass. Ryōan-ji, in Kyoto, has fifteen stones in five groups.

The rake has five teeth. Drag across the gravel: it wipes the lines beneath it and draws its own, without ever crossing the moss. Walk around a stone to draw a circle. Change the light to watch the relief appear, grazing at dawn, almost gone at noon.

How it works

The gravel is a height map of about 250,000 points, computed in the browser. Each stroke of the rake rewrites the points under its teeth with a cosine profile, then sends the map back to the GPU.

No relief is modelled: a shader reads the map, works out the slope of the gravel at each point and lights it with a low, grazing light. In the same pass it adds the grain of the sand, a few quartz glints, the shadow of each stone, softening as it lengthens, and the darkening of the gravel at the foot of the stones and against the frame.

Each stone starts as a sphere warped by noise, then a few random planes slice through it, like the faces of a split rock. Its colour blends two tones, darker in the hollows and at the foot, with patches of lichen on top; a fine grain is added when it is drawn. The moss is a bumpy cushion, from dark green to yellow-green.

The music is not a recording. Each koto note is synthesised on load with the Karplus-Strong algorithm, which simulates a plucked string with a loop of filtered noise. A small improviser then picks notes from the hirajōshi scale (D, E, F, A, B flat), and every stroke of the rake sounds a string.

Rendering
Three.js, WebGL 2
Gravel
height map, ≈ 250,000 points lit one by one
Composition
odd groups, random draw
Sound
synthesised koto (Karplus-Strong), hirajōshi scale
Input
mouse or finger

Original code by the MOSTAH Lab, built with Three.js (MIT licence).

← All experiments