oneshotlm
Compare all models on this prompt →

Fireworks · glm-5

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
The user wants me to create a fireworks display with:
1. Full-screen canvas
2. Click to launch shells
3. Shells explode into particle bursts
4. Gravity affects particles
5. Particles fade over time

Let me create a self-contained HTML file with all the CSS and JavaScript inline.
write /workspace/index.html (11422 bytes)
toolResult

Successfully wrote 11422 bytes to /workspace/index.html

assistant
thinking
I've created a complete fireworks display with all the requested features:
1. Full-screen canvas that resizes with the window
2. Click to launch shells from the bottom of the screen
3. Shells travel upward and explode into particle bursts
4. Gravity affects particles as they fall
5. Particles fade over time with trailing effects
6. Automatic fireworks launch periodically
7. Multiple explosion types (circular burst, random burst, double ring)
8. Various color palettes for each firework
9. Glow effects for both shells and particles

The file is complete and self-contained with no external dependencies.

I've created a full-screen fireworks display at `/workspace/index.html`. Here's what's included: **Features:** - **Full-screen canvas** - Automatically resizes with the window - **Click to launch** - Click anywhere to launch a firework shell from the bottom toward your click position - **Realistic physics** - Shells rise with deceleration, particles are affected by gravity and friction - **Particle explosions** - 50-100 particles per burst with three explosion types (circular, random, double-ring) - **Fading trails** - Both shells and particles leave glowing trails that fade - **Multiple color palettes** - 10 different vibrant color schemes randomly selected for each firework - **Auto-launch** - Background fireworks automatically launch periodically - **Glow effects** - Radial gradients create realistic glow around shells and particles **Physics:** - Gravity pulls particles downward - Friction slows particles over time - Particles fade and shrink as they age - Trails follow the motion path Open the file in a browser to see the fireworks display. Click anywhere on the screen to launch your own fireworks!

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
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Fireworks launch and explode into colorful gravity-affected particle bursts, responding to click, drag, wheel, and keyboard inputs.

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 motion2.2%
on click8.6%
on drag2.1%
on wheel7.0%
on enter + space6.8%
on arrow keys7.3%
on w/a/s/d3.9%
frame spread16.3 / 255
console errors0
js errors none

METRICS

runtime45.9s
tokens in2.8k
tokens out3.0k
cached2.9k
cost / run$0.0077