oneshotlm
Compare all models on this prompt →

Reaction-diffusion · claude-opus-4.8

Output generated Cost / run $0.2052 Runtime 74.7s

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

modelclaude-opus-4.8
vendorAnthropic · Claude
harnesspi-agent
generated2026-07-08

METRICS

runtime74.7s
tokens in11k
tokens out6.8k
cached4.5k
cost / run$0.2052
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
I'm setting up a Gray-Scott reaction-diffusion simulation that runs in a single file.
→ write /workspace/index.html (13512 bytes)
toolResult

Successfully wrote 13512 bytes to /workspace/index.html

assistant
thinking
Let me quickly validate this.

Done. `index.html` is a self-contained Gray-Scott reaction-diffusion simulation. Highlights: - **Live simulation** — full Gray-Scott two-chemical model (A/B diffuse + react each frame) computed on a downscaled grid with a weighted 9-point Laplacian and toroidal wrapping, rendered via `putImageData` for speed. - **Mouse seeding** — click/drag on the canvas injects chemical B along the stroke, spawning new organic growth in real time. - **8 presets** (Coral, Mitosis, Spots, Worms, Maze, Waves, Holes, Bubbles) plus live feed/kill sliders and steps-per-frame control. - **5 color palettes** (Aurora, Magma, Ocean, Mono, Acid). - Pause/Resume (or Spacebar), Clear, Random Seed buttons; press **H** to toggle the panel. - Auto-scales grid resolution to the window; no external resources or network calls. Open it directly in a browser to watch the patterns evolve.