# Filament Orb Lamp

> A glass discharge lamp on a dark desk at night, where nine crackling arcs drift from a frosted electrode to the glass and all lean into one bright bundle wherever you press; drag to steer the bundle round the sphere, tap for a surge, flip the switch or change the gas colour.

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

## What you get

Bring the gas colours, the room and the copy for your lamp. The Skill returns a downloadable Skill and a runnable glass-lamp scene.

## Install

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

```text
/filament-orb-lamp build a glass discharge lamp scene with <your gas colours, room and copy>
```

## How it works

1. **Write the lamp briefs** Each brief in assets/briefs/ holds the copy, the arc count, the random seed and three gas themes, and each theme colours the gas, core, haze, rim, room, desk, cord, base and switch light. The bundled English brief is a violet, ice and ember lamp in a cool room; the Chinese brief is jade, rose and moon-white in a warm wood room. Ask your agent, for example: "Use filament-orb-lamp with a sea-green, amber and white lamp on a walnut desk."
2. **Build one offline page** npm run build inlines src/orb.js and src/lamp.js and both briefs into dist/index.html, about 50 KB. ?lang=en or ?lang=zh-CN picks the brief and ?theme=<id> picks a gas. The arcs, glass, base, desk and room are drawn with Canvas 2D code, with no images, fonts or network requests, and it runs locally in any modern browser with no API key and no model calls.
3. **Check the lamp before you ship** npm install brings in playwright-core, then npm run shoot drives the page in headless Chrome with the network blocked. It runs 23 checks: the arcs grow on power-on, free arcs stay fanned out and off the neck, a press gathers all nine within half a second, a drag steers the bundle, a tap surges and decays, power and themes work, and reduced motion stops the unattended cycle.

## FAQ

### Does Filament Orb Lamp need an API key?

No. Filament Orb Lamp 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.

### Is Filament Orb Lamp a real plasma simulation?

No. Filament Orb Lamp draws a model of a gas discharge lamp, not an electrical simulation. Each arc is a bent curve from the electrode to the glass with a crackling jagged profile, and a spring pulls its end toward your touch. The arcs do not branch toward objects other than the pointer, and the scene has no sound.

### What does a tap do in Filament Orb Lamp?

A tap surges. In Filament Orb Lamp a short press that does not move, under about a quarter of a second, flashes the electrode and the room, kicks every arc and sends a burst of sparks from the contact point. A longer press holds the arcs, and Space or Enter taps the glass from the keyboard.

### Does Filament Orb Lamp work on a phone?

Yes. Filament Orb Lamp answers touch the same way as a mouse: touch the glass to gather the arcs, drag to steer them and tap for a surge. On narrow screens the switch and gas swatches move to the top and the card moves to the bottom. The checks ran at 390 × 844 under touch emulation, not on real devices.

### What happens with reduced motion in Filament Orb Lamp?

With prefers-reduced-motion, Filament Orb Lamp stops the unattended gathering cycle, the sparks and the grain shift, and runs the drift and crackle at 30 percent speed. Pressing, dragging, the switch and the gas swatches still work. When frames keep costing more than about 28 ms, the page also lowers its canvas resolution step by step.

## Examples

- Filament Orb Lamp glass lamp (scene)
- The Lamp on the Night Desk (video)
