oneshotlm
Compare all models on this prompt →

Reaction-diffusion · grok-4.3

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 · 8 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
The task is: "Build a single-page web app and write it ALL into one self-contained file named index.html in the current directory: CSS in a <style> tag, JS in a <script> tag, inline — do not create se...
bash {"command":"ls -la"}
toolResult

total 4 drwxrwxrwx 2 node node 64 Jul 22 17:47 . drwxr-xr-x 1 root root 4096 Jul 22 17:47 ..

assistant
thinking
The workspace is empty, which is fine. I need to create index.html with a self-contained Gray-Scott reaction-diffusion simulation.
The task is to create an index.html file with a self-contained Gray-Scott reaction-diffusion simulation that grows organic Turing patterns in real time, seeded by the mouse.

I need to write a single HTML file with embedded CSS and JS that runs this simulation.

Key parts:

- HTML structure: DOCTYPE, html, head with style, body with canvas and controls, script with logic.

- Simulation: Gray-Scott model with parameters A, B.

- Real-time: requestAnimationFrame.

- Mouse interaction: seed new growth.

- No external resources.

I recall the Gray-Scott model:

Two chemicals U and V.
write index.html (10905 bytes)
toolResult

Successfully wrote 10905 bytes to index.html

assistant
thinking
The file has been created successfully. Let me verify it's present and complete.
bash {"command":"ls -la index.html && wc -l index.html"}
toolResult

-rw-r--r-- 1 node node 10905 Jul 22 17:48 index.html 384 index.html

assistant
thinking
The file is complete. It's a single self-contained HTML file with the Gray-Scott simulation. No external resources, fully functional, interactive with mouse/touch seeding of new patterns, real-time ad...

index.html created successfully with fully self-contained Gray-Scott reaction-diffusion simulation.

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

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Gray-Scott reaction-diffusion simulation runs and evolves organic maze/spot patterns, animates on its own, though mouse seeding effect is unclear.

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 motion19.8%
on click15.6%
on drag10.1%
on wheel5.1%
on enter + space5.3%
on arrow keys0.4%
on w/a/s/d3.9%
frame spread92.9 / 255
console errors1
js errors none

METRICS

runtime52.3s
tokens in5.1k
tokens out4.8k
cached8.5k
cost / run$0.0200