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.
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
Run a Gray-Scott reaction-diffusion simulation on a canvas that grows organic Turing patterns in real time, with the mouse seeding new growth.
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.
index.html (8220 bytes)Successfully wrote 8220 bytes to index.html
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.