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.
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
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.
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.
index.html (6858 bytes)Successfully wrote 6858 bytes to index.html
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.