oneshotlm
Compare all models on this prompt →

Fluid simulation · qwen3-coder-30b-a3b-instruct

Create a real-time fluid simulation on a full-screen canvas where dragging the mouse pushes swirling colored dye through the fluid.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

Create a real-time fluid simulation on a full-screen canvas where dragging the mouse pushes swirling colored dye through the fluid.

assistant

# Real-Time Fluid Simulation with Colored Dye I'll create a full-screen fluid simulation where dragging the mouse pushes swirling colored dye through the fluid. This will use a simplified Navier-Stokes solver with a visual dye rendering system.

write index.html (19500 bytes)
toolResult

Successfully wrote 19500 bytes to index.html

assistant

I've created a real-time fluid simulation with draggable dye effects. Here's what the implementation includes: 1. **Full-screen fluid simulation** using a simplified Navier-Stokes solver 2. **Interactive dye system** where dragging the mouse pushes swirling colored dye through the fluid 3. **Particle effects** that visualize the dye movement with colorful particles 4. **Real-time rendering** with smooth animations 5. **Responsive design** that works on any screen size 6. **Controls**: - Drag mouse to create fluid motion and dye - Press SPACE to toggle fluid rendering on/off The simulation uses: - Grid-based fluid dynamics with velocity and dye fields - Diffusion and advection algorithms for realistic fluid behavior - Particle system for enhanced visual effects - Colorful dye that swirls with the fluid motion - Performance optimizations to maintain smooth animation To interact with the simulation: 1. Simply drag your mouse across the screen to push dye through the fluid 2. The dye will swirl and move realistically with the fluid currents 3. Press SPACE to toggle the fluid rendering on/off The implementation is contained in a single HTML file with no external dependencies, making it fully self-contained and ready to run in any modern browser.

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

modelqwen3-coder-30b-a3b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Drag creates colored dye particles, but visuals resemble scattered dots rather than a fluid swirl simulation.

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 motion0.0%
on click0.0%
on drag1.6%
on wheel1.5%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread15.3 / 255
console errors0
js errors none

METRICS

runtime92.4s
tokens in8.0k
tokens out4.9k
cached0
cost / run$0.0019