oneshotlm
Compare all models on this prompt →

Reaction-diffusion · gemini-3.1-flash-lite

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
thinking
**Developing Self-Contained Simulation**

I'm focusing on integrating all Gray-Scott simulation elements directly into a single `index.html` file. My current efforts are dedicated to achieving real-time animation of organic Turing patterns and enabling dynamic mouse interaction for seeding growth, all within this self-contained structure.

**Implementing Core Simulation**

I'm now focused on the core Gray-Scott equations. My current work involves calculating the Laplacian for $U$ and $V$ and implementing the reaction-diffusion update steps for both chemicals, aiming for efficient pixel manipulation via `ImageData`.

write index.html (3538 bytes)
toolResult

Successfully wrote 3538 bytes to index.html

assistant

The Gray-Scott reaction-diffusion simulation is now ready in `index.html`. You can open this file in any web browser to see the organic Turing patterns evolve. You can click and drag on the canvas to seed new "chemicals" into the simulation, causing new patterns to grow.

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

modelgemini-3.1-flash-lite
vendorGoogle
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Gray-Scott reaction-diffusion evolves organically on its own and mouse click/drag/wheel seed new growth, matching the prompt well.

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 motion8.7%
on click32.3%
on drag27.0%
on wheel26.3%
on enter + space4.9%
on arrow keys13.4%
on w/a/s/d1.2%
frame spread120.7 / 255
console errors0
js errors none

METRICS

runtime14.2s
tokens in4.3k
tokens out1.9k
cached0
cost / run$0.0040