Fireworks · ling-2.6-1t
Output generated Cost / run $0.0026 Runtime 26.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.
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 · 4 messages
Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.
I'll create a full-screen fireworks display with gravity-affected particles that fade out. Here's the complete implementation:
/tmp/ws/index.html (8722 bytes)Successfully wrote 8722 bytes to /tmp/ws/index.html
I've created a full-screen fireworks display with the following features: **Core Mechanics:** - **Click to launch**: Click anywhere on screen to fire a shell toward that location - **Gravity-affected particles**: Each explosion creates particles with realistic downward acceleration - **Fading particle bursts**: Particles gradually fade out based on their remaining life - **Trail effects**: Shells leave glowing trails as they ascend **Firework Types:** - **Ring explosions**: Circular pattern of particles - **Dense bursts**: Concentrated spherical bursts - **Standard explosions**: Classic firework spread **Visual Effects:** - 8 different color palettes (red, blue, green, yellow, purple, orange, cyan, pink) - Glowing particles with soft bloom effects - Fading trail marks behind ascending shells - Smooth particle decay with alpha blending - Auto-fire mode for continuous ambient display **Technical Details:** - Single self-contained HTML file with inline CSS and JavaScript - Canvas-based rendering optimized for performance - Responsive design that adapts to window resizing - Touch support for mobile devices - Particle physics with velocity decay and gravity - Particles fade out naturally as they lose energy Simply open `index.html` in any modern browser and click anywhere to launch fireworks!