oneshotlm
Compare all models on this prompt →

Fireworks · glm-5.2

Output generated Cost / run $0.0204 Runtime 86.8s

Prompt for this run

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

⛨ sandboxed Open in new tab ↗

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelglm-5.2
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-08

METRICS

runtime86.8s
tokens in7.1k
tokens out4.5k
cached0
cost / run$0.0204
Transcript · 4 messages
user

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

assistant
thinking
Let me create a self-contained fireworks display web app.
→ write index.html (13350 bytes)
toolResult

Successfully wrote 13350 bytes to index.html

assistant

Created `index.html` — a full-screen fireworks display. Open it in any browser. **How it works:** - **Click/tap anywhere** → launches a shell from the bottom that rises to your click point and explodes. - Shells are physics-based: initial velocity is computed to reach the target height under gravity, with a glowing comet trail and a faint rising whistle sound. - On detonation, a radial **flash** blooms out and a burst of particles spawns. **Particle behavior:** - Velocity decays via air drag, gravity pulls them down, and alpha fades to zero. - Each particle has a colored radial glow + bright core, with optional motion trails and random flicker. **Burst variety** (randomly chosen per shell): - **Peony** – classic round scatter - **Ring** – tight symmetrical ring + inner scatter - **Willow** – heavy gravity, long drooping trails - **Chrysanthemum** – layered double rings - **Sparkle** – multicolored, fast-flickering **Atmosphere:** - Trailing frame fade (`rgba(5,6,10,0.18)`) gives smoky persistence. - Additive (`lighter`) blending makes overlapping particles bloom brightly. - Simple WebAudio generates a whistle on launch and a filtered noise boom on detonation (enabled after first interaction). - Idle auto-launch keeps the sky alive if you stop clicking for 5+ seconds. - An opening volley fires automatically on load.