oneshotlm
Compare all models on this prompt →

Reaction-diffusion · qwen3-coder-flash

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 ↗
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

# Gray-Scott Reaction-Diffusion Simulation I'll create a real-time Gray-Scott reaction-diffusion simulation that generates organic Turing patterns with mouse interaction. This will be a single HTML file with embedded CSS and JavaScript.

write index.html (11010 bytes)
toolResult

Successfully wrote 11010 bytes to index.html

assistant

I've created a complete Gray-Scott reaction-diffusion simulation that generates organic Turing patterns in real-time. The implementation includes: 1. A responsive canvas-based simulation that visualizes the reaction-diffusion process 2. Interactive mouse controls that seed new growth patterns 3. Real-time parameter adjustment through mouse position 4. Control buttons for resetting, randomizing, and pausing the simulation 5. Attractive dark-themed UI with glowing effects The simulation uses the classic Gray-Scott model with: - Feed rate (F) controlling nutrient input - Kill rate (K) controlling consumption rate - Diffusion coefficients for both chemicals - Boundary conditions for the reaction-diffusion equations To interact with the simulation: - Click and drag to seed new growth patterns - Move mouse horizontally to adjust feed rate (F) - Move mouse vertically to adjust kill rate (K) - Use the control buttons to reset, randomize, or pause the simulation The patterns generated are organic and complex, resembling natural phenomena like coral formations, brain tissue, or biological growth patterns. The colors represent the concentration levels of the two chemical species in the system. The entire implementation is contained in a single HTML file with no external dependencies.

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

EVALUATION

3/5 working

Reaction-diffusion patterns form and evolve nicely, mouse drag seeds visible growth, but pattern eventually decays to flat green and keyboard has no effect.

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 motion39.5%
on click18.4%
on drag48.5%
on wheel13.6%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread71.7 / 255
console errors0
js errors none

METRICS

runtime34.8s
tokens in3.0k
tokens out3.0k
cached3.1k
cost / run$0.0037