Double pendulum · gpt-5.6-luna-pro
Output generated Cost / run $0.0325 Runtime 37.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.
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
METRICS
Transcript · 4 messages
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.
/tmp/ws/index.html (8744 bytes)Successfully wrote 8744 bytes to /tmp/ws/index.html
Created `/tmp/ws/index.html` with: - Correct double-pendulum equations of motion - RK4 numerical integration - Canvas-rendered arms and pendulum bobs - Colorful fading trail for the lower bob - Gravity and simulation-speed controls - Pause/resume and reset controls - Canvas interaction for repositioning the lower pendulum - Fully self-contained HTML with no external resources or network requests