oneshotlm
Compare all models on this prompt →

Reaction-diffusion · qwen3-coder

Output generated Cost / run $0.0028 Runtime 86.0s

Prompt for this run

Run a Gray-Scott reaction-diffusion simulation on a canvas that grows organic Turing patterns in real time, with the mouse seeding new growth.

⛨ sandboxed Open in new tab ↗

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-coder
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime86.0s
tokens in5.4k
tokens out2.3k
cached5.3k
cost / run$0.0028
Transcript · 4 messages
user

Run a Gray-Scott reaction-diffusion simulation on a canvas that grows organic Turing patterns in real time, with the mouse seeding new growth.

assistant

I'll create a self-contained HTML file with a Gray-Scott reaction-diffusion simulation that grows organic Turing patterns and responds to mouse input.

→ write index.html (8220 bytes)
toolResult

Successfully wrote 8220 bytes to index.html

assistant

I've created a complete Gray-Scott reaction-diffusion simulation in a single HTML file. The simulation features: 1. A colorful visualization of Turing patterns that emerge from the reaction-diffusion process 2. Interactive seeding - click and drag to introduce new chemical concentrations 3. Controls to reset or pause/resume the simulation 4. Optimized performance using a lower-resolution grid that scales to fill the canvas The simulation uses the classic Gray-Scott parameters (F=0.055, k=0.062) which produce rich organic patterns. The colors shift from deep blues through purples to yellows as the concentration of chemical V changes. To use it: - Click and drag to seed new growth areas - Press "Reset Simulation" to start over - Press "Pause/Resume" to stop or continue the simulation The patterns will continue evolving organically as long as the simulation runs, creating endlessly fascinating emergent structures.