Fireworks · claude-sonnet-5.5
Output generated Cost / run $0.0487 Runtime 25.3s
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.
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
METRICS
Transcript · 8 messages
Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.
/tmp/job-oaO4Bb/index.html (2996 bytes){"action":"click","x":600,"y":250}Successfully wrote to /tmp/job-oaO4Bb/index.html
Frame 1, +0ms
[Browser image supplied to model]
{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Click anywhere to launch a firework","images":"attached"}
Shell launches. Check the burst.
{"action":"motion"}Frame 1, +0ms
[Browser image supplied to model]
Frame 2, +561ms
[Browser image supplied to model]
Frame 3, +1118ms
[Browser image supplied to model]
Frame 4, +1667ms
[Browser image supplied to model]
{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Click anywhere to launch a firework","images":"attached"}
I built the fireworks display in `/tmp/job-oaO4Bb/index.html`. I clicked once and watched the result in a short frame capture: the shell launches, explodes, and fades, with no console errors. Each click launches a shell from near the bottom centre. It rises to the point you clicked and bursts there. Bursts come in four shapes (sphere, ring, random scatter, star-like) in one colour or several. The particles fall under gravity, leave trails and fade out. - **Auto-launch:** random shells also go up on their own every so often. Spacebar turns that on and off. - **Capture quirk:** some captured frames showed the burst unevenly (a faint ring in one, nothing but a streak in another). That looks like the capture catching different moments rather than a bug. I didn't test other shapes, repeated clicks or resizing the window.