# Pinscreen Relief

> A brass-trimmed bench of about 9,600 sprung pins that a palm, a mask, a pebble or travelling rings press up into lit relief, with hold, drag and a board you can turn.

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

## What you get

Bring the shapes to press into the pins. The Skill returns a downloadable Skill and a runnable pinscreen scene.

## Install

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

```text
/pinscreen-relief build a pinscreen bench that presses <your shapes> into relief
```

## How it works

1. **Open the relief bench** Pinscreen Relief shows a brass-trimmed bench with corner bolts, a model badge, a depth gauge and an amber raised-pin counter, holding about 9,600 nickel pins on desktop and about 4,600 on a phone. It presses its first form within a second and cycles until touched. A prompt such as 'Use pinscreen-relief to build a pinscreen bench that presses seashells into relief' sets the shapes.
2. **Press forms and the pointer** src/pins.js springs each hex-packed pin toward a target height with an overshoot cap, and once the target falls away the pin sinks slowly, so impressions linger. Forms are palm, mask, pebble and travelling rings, built from domes and rods. Hold sinks a hand deeper, drag ploughs a trail and Turn sends a wave lifting every pin before it drops back.
3. **Build and prove five interactions** npm install fetches playwright-core for the checks, npm run build writes a bilingual dist/index.html and npm run build:zh a Chinese-only build. npm run shoot runs capture-mode mechanism checks and writes dist/shoot-report.json. node assets/imprint/scripts/verify.mjs proves the bench moving unprompted, a deeper hold, a drag trail, the Mask key and the Turn wave under the sandbox CSP.

## FAQ

### What is Pinscreen Relief?

Pinscreen Relief is an interactive pinscreen toy in one HTML page, where sprung pins press up into lit relief from a palm, a cast mask, a pebble, travelling rings or your hand, then sink back slowly. It suits desk-gadget toys and height-field relief demos.

### What does the Turn key do in Pinscreen Relief?

Pinscreen Relief raises every pin to the top in a top-to-bottom wave when you press Turn, or F. The pins bounce, then drop back onto whatever form is still pressed. Lift, or R, releases the current form instead.

### How is Pinscreen Relief drawn so fast?

Pinscreen Relief bakes 22 brightness sprites once per light direction and draws each pin with one drawImage call. Shading combines neighbour-gradient diffuse light, a sharp specular term and a one-pass cast shadow from the lit corner, and tall pins lean for parallax. When frames run long it drops to a coarser backing store.

### Does Pinscreen Relief need images or a key?

No. Pinscreen Relief computes its forms as stylised height maps in code, with no image assets, network requests or model calls, so running it costs nothing on SandBase. The forms are not scans.

### Does Pinscreen Relief support reduced motion?

Yes. Pinscreen Relief stops the idle sheen, lamp drift and travelling rings and stiffens the damping when reduced motion is requested. ?lang=en or ?lang=zh-CN picks the copy, and ?capture=1 stops the loop so a recorder can drive frames.

## Examples

- Pinscreen Relief bench (scene)
- Imprint (video)
