oneshotlm
Compare all models on this prompt →

Lorenz attractor · qwen3-coder

Output generated Cost / run $0.0025 Runtime 14.4s

Prompt for this run

Using the pre-provided three.min.js (global THREE), visualize the Lorenz attractor as a glowing 3D butterfly trajectory that draws over time, with orbit-drag camera controls.

⛨ 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

modelqwen3-coder
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime14.4s
tokens in5.1k
tokens out1.8k
cached3.9k
cost / run$0.0025
Transcript · 4 messages
user

Using the pre-provided three.min.js (global THREE), visualize the Lorenz attractor as a glowing 3D butterfly trajectory that draws over time, with orbit-drag camera controls.

assistant

I'll create a self-contained HTML file that visualizes the Lorenz attractor using Three.js. The visualization will show a glowing butterfly-shaped trajectory that draws over time with interactive camera controls.

→ write index.html (6858 bytes)
toolResult

Successfully wrote 6858 bytes to index.html

assistant

I've created a self-contained HTML file that visualizes the Lorenz attractor using Three.js. The visualization features: 1. A glowing 3D butterfly-shaped trajectory that draws over time 2. Interactive orbit-drag camera controls (drag to rotate, scroll to zoom) 3. Color transition from blue to red along the trajectory 4. Responsive design that adapts to window resizing 5. Informative UI elements The lorenz equations are implemented with the classic parameters (sigma=10, rho=28, beta=8/3) and the trajectory is drawn incrementally to show the attractor's evolution over time. To view the visualization: 1. Save the generated index.html file 2. Make sure three.min.js is in the same directory 3. Open index.html in a modern web browser The attractor will start drawing immediately, creating the characteristic butterfly shape. You can interact with the visualization by dragging to rotate the view and scrolling to zoom in/out.