Filament Orb Lamp
- Skill de Lab
- v0.1.2
- Interactive 3D
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.
Ejemplo
Filament Orb Lamp glass lamp
El ejemplo se ejecuta en un marco aislado, sin acceso a esta página.
Ejecutar en línea
Ejecuta en un sandbox de SandBase y consulta los resultados en Lab.
Abrir en Lab ↗Qué obtienes
Bring the gas colours, the room and the copy for your lamp. The Skill returns a downloadable Skill and a runnable glass-lamp scene.
Cómo funciona
- 01
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."
- 02
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.
- 03
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.
Preguntas frecuentes
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.
Más Skills
Todos los Skills de Interactive 3D →
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.

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.

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.

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.

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.

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.

