oneshotlm
Compare all models on this prompt →

Double pendulum · muse-spark-1.2

Output generated Cost / run $0.0665 Runtime 46.4s

Prompt for this run

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 ↗

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

METRICS

runtime46.4s
tokens in15k
tokens out12k
cached3.6k
cost / run$0.0665
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