# Raked Gravel Court

> A walled court of white gravel under a ginkgo, seen from a timber eave and drawn as crisp pixels, where every groove is relit in hard light bands from its own slope and the stones turn their shadows from dawn to night; drag to rake new grooves, tap a stone to ring it, let rain soften the bed.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/raked-gravel-court

## What you get

Bring the court layout, stones, tree, colours and copy for your garden. The Skill returns a downloadable Skill and a runnable gravel-court scene.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/raked-gravel-court (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/raked-gravel-court build a gravel court scene with <your stones, tree, colours and copy>
```

## How it works

1. **Write the court briefs** Each brief in assets/briefs/ holds the copy, the four hour names, the readout format, the starting hour, the palette and the court itself: rows or waves for the bed, the tree position and kind (ginkgo fan or plum blossom), the lantern positions, the stones with their size, height and lumps, and the stepping stones. The bundled English brief is an autumn court under a ginkgo; the Chinese brief is a dusk court under a plum. A new brief needs no code change. You might tell your Agent: "Use raked-gravel-court to make a moonlit court with three tall stones and no lanterns."
2. **Build one offline page** npm run build inlines src/court.js and both briefs into dist/index.html, about 70 KB. ?lang=en or ?lang=zh-CN picks the brief. Every surface is a heightfield on a 448 × 300 grid, projected once into a lookup table and drawn into a 448 × 252 pixel buffer scaled up crisp. The grooves are a second field on top of the gravel, so each pixel takes its light from the slope of both, in five hard bands. Shadows are ray-marched toward the sun in slices across frames. There are no images or network requests, no API key and no model calls.
3. **Check the court before you ship** npm install brings in playwright-core, then npm run shoot drives the page frame by frame in headless Chrome with the network blocked. It runs 44 checks: the bed opens raked with the grooves visible as light bands, a real mouse drag rewrites the bed and counts one stroke, a tap rings a stone, each hour reaches its light and rebuilds the shadows, rain wets and softens the bed and drying reverses it, raking it fresh restores it, keys work, reduced motion opens still, and at 360, 390 and 768 px wide in both languages no two controls overlap.

## FAQ

### Does Raked Gravel Court need an API key?

No. Raked Gravel Court is a single offline HTML page drawn with Canvas 2D, so it needs no API key and makes no model or network calls, before or after it is built. Node.js is only needed to run the build script, and playwright-core with a local Chrome only for the bundled browser checks.

### Does raking really move the gravel?

No. Raked Gravel Court treats a groove as a height offset on the bed, not as moved material. Raking rewrites that offset under the five tines, so it never piles gravel up, and rain only flattens the grooves toward their local mean. The lighting, though, comes from the real slope of every groove.

### Can I change the stones and the tree?

Yes. The stones, stepping stones, lanterns and tree live in the brief. Each stone sets its position, radius, height and number of lumps, and the tree can be a ginkgo or a plum in blossom. Copy one of the two bundled briefs, edit it and pass its name to scripts/build.mjs.

### Does Raked Gravel Court work on a phone?

Yes. Raked Gravel Court answers touch the same way as a mouse: drag to rake and tap a stone to ring it. Portrait phones get a taller stage that crops the sides of the court, and the bar wraps under it. The checks ran at 360, 390 and 768 px wide under emulation, not on real devices.

### Does Raked Gravel Court make sound?

Only when you switch it on. Raked Gravel Court starts silent. With sound on, a soft noise bed follows the rake speed, and the rain, the ring sweep round a stone and night insects each have their own layer. The sound was checked in code, not by ear.

## Examples

- Raked Gravel Court scene (scene)
- Autumn Court under the Ginkgo (video)
