oneshotlm
Compare all models on this prompt →

Fireworks · deepseek-v4-pro

Output generated Cost / run $0.0044 Runtime 62.1s

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

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

METRICS

runtime62.1s
tokens in11k
tokens out3.4k
cached7.7k
cost / run$0.0044
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.