oneshotlm
Compare all models on this prompt →

Fireworks · deepseek-v4-pro

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 · 6 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 a fireworks display web app in a single self-contained `index.html` file. Let me build this with:

1. Full-screen canvas
2. Click to launch fireworks shells
3. Shells explode into particles
4. Particles are affected by gravity
5. Particles fade out
6. Beautiful colors

Let me create a complete implementation with:
- A dark night sky background
- Firework shells that launch upward from the click position
- Shells that explode into circular bursts of particles
- Gravity pulling particles down
- Particles that fade (alpha decreases) and shrink
- Trail effect on the shell as it rises
- Random colors for each firework
- Maybe some sparkle/twinkle effects

Let me write this out fully.
write /workspace/index.html (8685 bytes)
toolResult

Successfully wrote 8685 bytes to /workspace/index.html

assistant
thinking
The file is written. Let me verify it's there and looks good.
bash {"command":"ls -la /workspace/index.html && wc -l /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 8688 Jul 8 00:55 /workspace/index.html 304 /workspace/index.html

assistant
thinking
File is written and verified. Let me give the user a summary of what was built.

Done! `/workspace/index.html` is ready — open it in any browser. Here's what it does: **Core mechanics:** - **Click anywhere** to launch a firework shell from the bottom of the screen - Shells rise with a sparkling trail, then **explode** at their peak into 80–180 particles - Particles are affected by **gravity** (98 px/s² downward), **air drag**, and **fade out** gracefully - A **delayed secondary burst** creates a layered explosion effect with a shifted hue **Visual details:** - Dark night-sky background with **140 twinkling stars** - Four randomized explosion patterns: ring, sphere, double-ring, and willow - Glow (`shadowBlur`) on every particle for a luminous, realistic look - Trail sparks shed from the rising shell every ~25ms - Fading "click anywhere to launch" hint that disappears on first interaction **Self-contained:** No external files, no CDN, no network — pure HTML/CSS/JS in a single file.

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

modeldeepseek-v4-pro
vendorDeepSeek
harnesspi-agent
generated2026-07-08

EVALUATION

3/5 working

Click launches fireworks with colorful particle bursts and fading trails against a starry background; other inputs show residual fading shells.

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 motion0.1%
on click1.4%
on drag0.3%
on wheel1.0%
on enter + space0.2%
on arrow keys0.1%
on w/a/s/d0.1%
frame spread3.9 / 255
console errors0
js errors none

METRICS

runtime62.1s
tokens in3.4k
tokens out3.4k
cached7.7k
cost / run$0.0044