oneshotlm
Compare all models on this prompt →

Fireworks · qwen3.5-plus-20260420

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 on a full-screen canvas. Let me build this step by step:

1. Full-screen canvas that fills the viewport
2. Click to launch shells upward
3. Shells explode into particles
4. Particles are affected by gravity
5. Particles fade over time
6. All in one self-contained index.html file

Let me design this:

- Canvas fills the window
- Click creates a "shell" that travels from bottom to the click position
- Shell explodes into colorful particles
- Each particle has velocity, gravity pulls it down, alpha fades over time
- Nice visual effects: trails, colors, sparkle

I'll make it visually impressive with:
- Multiple particle colors per explosion
- Trail effect (semi-transparent overlay each frame)
- Sound-like visual feedback
- Varied explosion sizes
- Nice color palette
write /tmp/ws/index.html (11207 bytes)
toolResult

Successfully wrote 11207 bytes to /tmp/ws/index.html

assistant
thinking
The file has been written successfully. Let me verify it's there and complete.
bash {"command":"wc -l /tmp/ws/index.html && head -3 /tmp/ws/index.html && echo \"...\" && tail -3 /tmp/ws/index.html"}
toolResult

400 /tmp/ws/index.html <!DOCTYPE html> <html lang="en"> <head> ... </script> </body> </html>

assistant
thinking
The file is now created. Let me verify it's well-formed by checking the structure.

The file is ready. Here's what `/tmp/ws/index.html` delivers: **Visual Features:** - **Full-screen canvas** with a twinkling star field and a dark skyline silhouette along the bottom - **Click anywhere** to launch a firework shell from the bottom of the screen toward your cursor - **Additive blending** (`lighter` composite mode) gives particles a luminous, glowing look - **Fade trail effect** via semi-transparent background overlay each frame **Firework Physics:** - Shells rise along a calculated trajectory with a golden trailing tail - On reaching the target, they **explode** into 60–120 particles with random colors from curated palettes - Each particle obeys **gravity** (falling arcs) and **air friction** (gradual slowdown) - Particles **fade out** over time and are removed when invisible **Explosion Varieties** (randomly chosen per firework): - **Burst** — classic spherical explosion - **Ring** — particles spread in a circular pattern - **Willow** — slower particles with stronger gravity, creating teardrop drapes - **Sparkle** — flickering white accent particles mixed in - 40% chance of a **secondary ring** layer for extra complexity **8 curated color palettes** ranging from warm reds/oranges to cool cyans/purples, plus white accent sparkles. There's also a subtle auto-launch system for ambient activity if you just watch.

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.5-plus-20260420
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Auto-launching fireworks with colorful particle bursts and fading trails; clicks trigger additional explosions convincingly.

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 motion5.5%
on click7.3%
on drag7.9%
on wheel5.2%
on enter + space3.8%
on arrow keys2.8%
on w/a/s/d6.5%
frame spread22.7 / 255
console errors0
js errors none

METRICS

runtime85.9s
tokens in13k
tokens out4.6k
cached0
cost / run$0.0121