Reaction-diffusion · seed-2-1-turbo
Run a Gray-Scott reaction-diffusion simulation on a canvas that grows organic Turing patterns in real time, with the mouse seeding new growth.
transcript · 4 messages
Run a Gray-Scott reaction-diffusion simulation on a canvas that grows organic Turing patterns in real time, with the mouse seeding new growth.
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.
/tmp/ws/index.html (12248 bytes)Successfully wrote 12248 bytes to /tmp/ws/index.html
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.
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
EVALUATION
Gray-Scott simulation generates convincing coral-like Turing patterns from drag/wheel seeding, though idle state shows no self-sustained growth.
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.