oneshotlm
Compare all models on this prompt →

Fireworks · glm-5.2

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

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

EVALUATION

4/5 working

Fireworks auto-launch and explode with gravity-affected particle bursts; clicks and keys also trigger new fireworks.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion6.9%
on click10.7%
on drag10.7%
on wheel2.1%
on enter + space11.0%
on arrow keys6.3%
on w/a/s/d7.2%
frame spread36.3 / 255
console errors0
js errors none

METRICS

runtime86.8s
tokens in7.1k
tokens out4.5k
cached0
cost / run$0.0204