Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

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.

例

Pinscreen Relief bench
新しいタブで開く

Pinscreen Relief bench

この例はサンドボックス化されたフレームで実行され、このページにはアクセスできません。

オンラインで実行

SandBase sandbox で実行し、結果を Lab で確認できます。

Lab で開く ↗

得られるもの

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

仕組み

  1. 01

    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. 02

    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. 03

    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.

Lab Skill · Interactive scenes

Resin Diorama

Live 3D resin-block dioramas in your browser: send a little tram across a clear turquoise sea, or ripple the bay of a cliff island. Synthesized sound, and every scene can be tuned.

Lab Skill · Interactive scenes

3D Vehicle Worlds

Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

Lab Skill · Interactive scenes

3D Firefly Terrariums

Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

Lab Skill · Interactive scenes

Jelly Candy: Fruit Bears

Six translucent fruit gummies on a white table. Grab any part and pull, lift a head until the neck stretches thin, press one flat until it springs back, flick one across the pile or pour in more. Fixed-step soft-body physics and a marching-cubes skin in one offline HTML.

Lab Skill · Interactive scenes

WebGPU Soft-Body Gummy Bears

Four translucent gummy bears on an ivory floor, rendered with native WebGPU. A deterministic 36-second choreography stretches, presses, flips and tumbles them before they settle back to the exact rest pose. Drag any bear to stretch, squish or toss it. A fixed-step tetrahedral XPBD solver in one offline HTML.

Lab Skill · Interactive scenes

Stone Stars: 3D Miniature Landmark City

Turn a city into a storybook 3D island around one landmark, with chapters, a daylight-to-starlight slider, street life and a matching scored 24-second film. Sample: a Gaudí-style basilica.