oneshotlm
Compare all models on this prompt →

Reaction-diffusion · seed-2-1-turbo

Output generated Cost / run $0.0149 Runtime 70.6s

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

modelseed-2-1-turbo
vendorByteDance · Seed
harnesspi-agent
generated2026-08-13

METRICS

runtime70.6s
tokens in8.0k
tokens out4.9k
cached2.7k
cost / run$0.0149
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'll create a single HTML file for the Gray-Scott reaction-diffusion simulation.The core rules and calculation equations of the Gray-Scott model have been clarified, the implementation framework including rendering, logic, interaction and parameter control has been confirmed, and the next step is to write all codes into a single HTML file.
→ write /tmp/ws/index.html (12248 bytes)
toolResult

Successfully wrote 12248 bytes to /tmp/ws/index.html

assistant
thinking
File created, will verify integrity.

Created `index.html` — a fully self-contained Gray-Scott reaction-diffusion simulation. **Features:** - Real-time Turing pattern growth on a 400×300 canvas (scaled to fit window) - **Left click/drag** seeds B reagent, letting new patterns grow organically from the cursor - **Right click/drag** erases areas - 8 built-in presets: spots, stripes, worms, mitosis, bubbles, coral, fingerprint - Live sliders for feed rate (f), kill rate (k), simulation speed, and brush size - Clear / Random Seed / Pause controls - Touch support for mobile - Custom blue-teal color mapping based on reagent concentrations The simulation uses the standard Gray-Scott model with a 9-point stencil Laplacian and runs multiple steps per frame for smooth growth.