oneshotlm
Compare all models on this prompt →

Double pendulum · muse-spark-1.2

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 (32574 bytes)
toolResult

Successfully wrote 32574 bytes to index.html

assistant

Built chaotic double pendulum simulation at `index.html` — single self-contained file with no external dependencies. Features: - **Correct physics**: full nonlinear Lagrangian equations of motion (no small-angle approximation) integrated with 4th-order Runge-Kutta + sub-stepping - **Canvas rendering**: rods with glow, mass-scaled bobs, pivot shadow, velocity-tinted fading trail - **Colorful trail modes**: Velocity (blue→red by tip speed), Rainbow (time hue), Neon; fading alpha with glow and variable width - **Interactivity**: drag elbow/tip to pose, scroll to zoom, Speed/Gravity/Mass/Length/Damping/Trail sliders, pause/play (Space), reset (R), randomize, nudge, clear trail (C), ghost twin (+0.2° to visualize divergence), energy/drift display

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

modelmuse-spark-1.2
vendorMeta
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

Chaotic double pendulum with glowing arms and colorful fading trail; animates smoothly, responds to click/drag/wheel/arrows, though Enter+Space pauses it.

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 motion1.2%
on click3.1%
on drag3.2%
on wheel2.6%
on enter + space1.0%
on arrow keys16.1%
on w/a/s/d0.0%
frame spread21.9 / 255
console errors0
js errors none

METRICS

runtime46.4s
tokens in15k
tokens out12k
cached3.6k
cost / run$0.0665