oneshotlm
Compare all models on this prompt →

Lorenz attractor · hy3-preview

Output generated Cost / run $0.0013 Runtime 34.6s

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

modelhy3-preview
vendorTencent · Hunyuan
harnesspi-agent
generated2026-07-22

METRICS

runtime34.6s
tokens in8.8k
tokens out4.3k
cached4.7k
cost / run$0.0013
Transcript · 6 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 3D Lorenz attractor visualization with Three.js. Let me first check the current directory and then build the app.

→ bash {"command":"ls -la"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Jul 22 17:48 . drwxr-xr-x 1 root root 4096 Jul 22 17:48 .. -rw-r--r-- 1 node node 603445 Jul 22 17:48 three.min.js

assistant

Now I'll create the complete `index.html` file with the Lorenz attractor visualization:

→ write /workspace/index.html (16013 bytes)
toolResult

Successfully wrote 16013 bytes to /workspace/index.html

assistant

The Lorenz attractor visualization is complete! Here's what I built: **Features:** - **3D Lorenz Attractor** - The butterfly trajectory draws in real-time with glowing particles - **Orbit Camera Controls** - Drag to rotate, scroll to zoom - **Glowing Particles** - Custom shader with additive blending creates a beautiful glow effect - **Color Gradient** - Trail transitions from blue → cyan → magenta → pink → purple - **Interactive Controls**: - Speed slider (0.1x to 5x) - Trail length (100 to 5000 points) - Glow intensity control - **Real-time Stats** - Point count and FPS display - **Subtle Auto-rotation** - Camera slowly rotates when not interacting **Technical Details:** - Uses Three.js (loaded from local `three.min.js`) - Custom GLSL shaders for the particle glow effect - Exponential fog for depth perception - Additive blending for the glowing trail effect - Fully self-contained in one HTML file with no external dependencies Open `index.html` in a browser to see the mesmerizing butterfly-shaped Lorenz attractor unfold in 3D space!