oneshotlm
Compare all models on this prompt →

Reaction-diffusion · nova-2-lite-v1

Output generated Cost / run $0.0143 Runtime 26.1s

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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime26.1s
tokens in8.2k
tokens out4.7k
cached0
cost / run$0.0143
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
[REDACTED].
→ write index.html (16222 bytes)
toolResult

Successfully wrote 16222 bytes to index.html

assistant
thinking
[REDACTED].

I've created a complete single-page web app for the Gray-Scott reaction-diffusion simulation in `index.html`. The implementation includes: 1. **Real-time simulation** of Turing patterns using the Gray-Scott model 2. **Mouse/touch interaction** to seed new growth patterns 3. **Interactive controls**: - Reset button - Random parameter generator - Pause/resume functionality - Sliders for all key parameters (feed rate, kill rate, time step, diffusion coefficients) 4. **Responsive design** that works on both desktop and mobile devices 5. **Fully self-contained** with no external dependencies (all CSS/JS inline) The simulation uses the Canvas API for rendering and implements the reaction-diffusion equations with proper boundary conditions. You can: - Click/drag to add new growth seeds - Adjust parameters in real-time to explore different pattern formations - Generate random parameters to discover new patterns - Pause/resume the simulation to examine patterns The file is ready to use - just open `index.html` in any modern browser to see the simulation running.