oneshotlm
Compare all models on this prompt →

Double pendulum · qwen3-235b-a22b-2507

Simulate a chaotic double pendulum on a canvas using the correct equations of motion, drawing the arms and a colorful fading trail of the tip.

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

Simulate a chaotic double pendulum on a canvas using the correct equations of motion, drawing the arms and a colorful fading trail of the tip.

assistant
write index.html (5049 bytes)
toolResult

Successfully wrote 5049 bytes to index.html

assistant

The chaotic double pendulum simulation has been created in `index.html`. It features: - Correct equations of motion using Hamiltonian dynamics - Two pendulum arms with bobs - A colorful fading trail showing the path of the second bob - Realistic chaotic behavior emerging from the physics - Semi-transparent overlay for motion blur effect - Responsive canvas sizing The simulation runs in any modern browser with no external dependencies. The trail fades over time with color shifting through the spectrum, creating a visually striking representation of the pendulum's chaotic motion. You can open index.html in a browser to see it running.

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-235b-a22b-2507
vendorQwen
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Double pendulum animates continuously with colorful fading trail; drag appears to reset/perturb the pendulum position.

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 motion3.4%
on click2.8%
on drag5.6%
on wheel4.9%
on enter + space3.6%
on arrow keys1.6%
on w/a/s/d3.3%
frame spread12.9 / 255
console errors0
js errors none

METRICS

runtime37.7s
tokens in4.5k
tokens out1.7k
cached0
cost / run$0.0006