# Snow Veil Tarn

> A frozen mountain lake seen from above in chunky pixels, where dragging sweeps the drifts off the ice to show bubbles and leaves frozen inside, a tap cracks it in a glowing web, and a long press floods dark water up along the cracks.

- 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/snow-veil-tarn

## What you get

Bring the shore, snow, palette, fish and copy for your tarn. The Skill returns a downloadable Skill and a runnable pixel-art ice scene.

## Install

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

```text
/snow-veil-tarn build a frozen lake scene with <your shore, snow, palette, fish and copy>
```

## How it works

1. **Write the tarn briefs** Each brief in assets/briefs/ holds the copy, the readout format, the palette and the set: how deep the land reaches from the top and left, an optional island, how much of the ice the drifts cover and which way the wind shaped them, the sweep radius, the shoal of fish, the light pool, and how many ridges, bubble stacks, leaves, reeds, rocks and pines to paint. A new brief needs no code change. You might tell your Agent: "Use snow-veil-tarn to make a moonlit tarn with a rocky island and ginkgo leaves in the ice."
2. **Build one offline page** npm run build inlines src/tarn.js and both briefs into dist/index.html, about 60 KB. ?lang=en or ?lang=zh-CN picks the brief. The shore, ice and pines are painted once into a 320 by 180 grid of cells. Each tick the snow depth, cracks and water are updated on that grid at 60 Hz, then drawn into the grid, scaled up four times without smoothing and given a soft glow along fresh cracks. There are no images or network requests, no API key and no model calls.
3. **Check the tarn 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 52 checks: the ghost hand sweeps, strikes and floods by itself, a real drag clears a drift without breaking it, a tap draws spokes that cross a ring of pixels round the strike, a hold floods water, snowfall adds snow only while it is up, a gust moves it downwind, reduced motion opens still, and at 360, 390 and 768 px wide in both languages no two controls overlap.

## FAQ

### Does Snow Veil Tarn need an API key?

No. Snow Veil Tarn 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.

### Are the cracks and the water really simulated?

In a simple way. Cracks grow by rules: each spoke takes small bending steps, may fork, and stops when it meets another crack or the shore, and curved chords join neighbouring spokes into rings. Water is a diffusion pass on the grid that moves quickly through cracked cells and slowly through solid ice, melting the snow it reaches. Neither is a physical fracture or fluid model.

### Can I change the shore and what is frozen in the ice?

Yes. The brief sets how far the land reaches from the top and left edges, an optional island, the number of pines and boulders, and what is frozen in the ice: pressure ridges, bubble stacks, reeds and birch or ginkgo leaves. A custom coastline beyond those numbers needs a code change. Copy one of the two bundled briefs, edit it and pass its name to scripts/build.mjs.

### Does Snow Veil Tarn work on a phone?

Yes. Drag a finger to sweep the snow, tap to crack the ice, and press and hold to flood water up through the cracks. Portrait phones get a taller stage that crops the tarn at the sides, and the control bar wraps under it. The checks ran at 360, 390 and 768 px wide under emulation, including a real touch tap, not on real devices.

### What does reduced motion change?

With reduced motion set in the system, Snow Veil Tarn opens with the ghost hand off, no falling snow and a shoal of fish that stays still, on a tarn that is already swept, cracked and flooded. Sweeping, striking, holding and the controls still work, so a viewer can explore it at their own pace. The checks confirm nothing moves on its own over four seconds.

## Examples

- Snow Veil Tarn scene (scene)
- Blue Hour on a Snowed-In Tarn (video)
