oneshotlm
Compare all models on this prompt →

Fireworks · gemini-3.1-flash-lite

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
**Developing Canvas Fireworks**

I'm focusing on getting the canvas element set up for a full-screen fireworks experience. My current thought is how to best handle launching the fireworks, specifically whether they should originate from the bottom of the screen or directly at the click location, leading to the target point.

**Designing Explosions**

I'm refining the physics for the fireworks shells, focusing on their upward trajectory before detonation. My current consideration is how to best manage the transition from shell travel to particle dispersal upon explosion, ensuring a visually impactful effect.

write index.html (4303 bytes)
toolResult

Successfully wrote 4303 bytes to index.html

assistant

The fireworks display has been created in `index.html`. It features a full-screen canvas where clicking anywhere on the screen launches a shell that explodes into gravity-affected, fading particles. No external dependencies are used.

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

modelgemini-3.1-flash-lite
vendorGoogle
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Clicks launch fireworks that explode into fading, gravity-affected particle bursts; drag also triggers residual fading particles.

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

METRICS

runtime13.1s
tokens in3.9k
tokens out1.6k
cached0
cost / run$0.0033