oneshotlm
Compare all models on this prompt →

Fireworks · qwen3.6-27b

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 single-page HTML file with a fireworks display using canvas. Let me create a visually impressive, self-contained fireworks animation with:

1. Full-screen canvas
2. Click to launch fireworks shells
3. Shells that rise, explode into particle bursts
4. Gravity affects the particles
5. Trail/fade effects
6. All CSS in `<style>`, all JS in `<script>`, no external resources

Let me write a polished implementation.
write /workspace/index.html (12829 bytes)
toolResult

Successfully wrote 12829 bytes to /workspace/index.html

assistant
thinking
Let me verify the file was created and looks good.
bash {"command":"head -5 /workspace/index.html && echo \"---\" && wc -l /workspace/index.html"}
toolResult

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> --- 387 /workspace/index.html

assistant
thinking
The file is created successfully with 387 lines. Let me give the user a summary of what's in it.

Done. `/workspace/index.html` is a fully self-contained fireworks display. Open it in a browser and click anywhere to launch shells. **What's in it:** - **Full-screen canvas** sized to the viewport (resizes with the window) - **Click/tap** anywhere → a rocket shell rises from the bottom toward your click, then bursts - **6 burst patterns** randomly chosen each time: - **Spherical** — classic radial burst (80–150 particles) - **Ring** — clean circular ring - **Double burst** — two concentric rings with different colors - **Willow** — heavy, droopy, long-trail particles - **Star** — directional star-shaped burst - **Crackle** — scattered multi-cluster explosion - **8 color palettes** including vivid random, reds, cyans, purples, golds, white, and lilac - **Physics**: gravity pulls particles down, friction slows them, each particle has 1–35px trail history for motion blur - **Rendering**: semi-transparent black overlay each frame creates natural bloom/fade trails; particles twinkle via a sinusoidal alpha modulation; bright white center flash on each explosion - **Touch support** for mobile; auto-launches a ambient firework every few seconds so the canvas stays alive

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

modelqwen3.6-27b
vendorQwen
harnesspi-agent
generated2026-07-31

EVALUATION

4/5 working

Auto-launching fireworks with gravity-affected, fading particle trails; click and other inputs also trigger new colorful bursts.

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 motion8.7%
on click12.8%
on drag8.8%
on wheel9.3%
on enter + space12.3%
on arrow keys13.0%
frame spread14 / 255
console errors0
js errors none

METRICS

runtime134.2s
tokens in9.4k
tokens out4.9k
cached4.4k
cost / run$0.0182