oneshotlm
Compare all models on this prompt →

Lorenz attractor · minimax-m2.1

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 ↗
transcript · 8 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
thinking
The user wants me to create a single-page web app that visualizes the Lorenz attractor as a glowing 3D butterfly trajectory. Let me break down what I need to do:

1. Use the pre-provided three.min.js library
2. Create a Lorenz attractor visualization
3. The trajectory should look like a glowing butterfly
4. It should draw over time
5. Include orbit-drag camera controls (OrbitControls)

Let me first check what's in the current directory to see the three.min.js file.
bash {"command":"ls -la /tmp/ws"}
toolResult

total 592 drwxr-sr-x. 2 node node 26 Aug 1 20:12 . drwxrwsrwx. 3 root node 16 Aug 1 20:12 .. -rw-r--r--. 1 node node 603445 Aug 1 20:12 three.min.js

assistant
thinking
Great, the three.min.js file is present. Now I'll create the index.html file with:

1. The Lorenz attractor visualization using Three.js
2. A glowing butterfly-like trajectory
3. Drawing animation over time
4. OrbitControls for camera interaction

The Lorenz attractor is defined by the equations:
- dx/dt = σ(y - x)
- dy/dt = x(ρ - z) - y
- dz/dt = xy - βz

Typical values: σ=10, ρ=28, β=8/3

I'll create a line geometry that builds up over time, with a glowing effect using additive blending and possibly a bloom-like effect.
write /tmp/ws/index.html (16510 bytes)
toolResult

Successfully wrote 16510 bytes to /tmp/ws/index.html

assistant
thinking
The file has been created successfully. Let me verify it exists and has the right content.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 16515 Aug 1 20:12 /tmp/ws/index.html

assistant
thinking
The file exists. Let me verify that the three.min.js file is being loaded correctly and the syntax looks good by checking the first part of the file.

I've created a single-page web app that visualizes the Lorenz attractor as a glowing 3D butterfly trajectory. Here's what's included: **Features:** - **Lorenz Attractor** - Classic strange attractor with parameters σ=10, ρ=28, β=8/3 - **Glowing Butterfly Effect** - Uses additive blending with dual lines (main + glow) for a neon-like appearance - **Color Gradient** - Beautiful pink-to-cyan-to-purple gradient that shifts over time - **Orbit Controls** - Custom drag-to-rotate and scroll-to-zoom camera controls (works on touch devices too) - **Animated Drawing** - The trajectory draws progressively over time - **Ambient Particles** - Floating particles in the background for atmosphere - **Interactive Controls** - Sliders to adjust drawing speed and trail length **Technical Implementation:** - Uses the pre-loaded `three.min.js` library - All inline CSS and JavaScript in a single file - No external resources or network requests - Uses Three.js BufferGeometry for efficient rendering of the line The visualization shows the iconic "butterfly" shape of the Lorenz attractor, with the line growing over time and creating the characteristic two-lobed pattern. The camera can be rotated by dragging and zoomed with the scroll wheel.

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

modelminimax-m2.1
vendorMiniMax
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Glowing pink Lorenz attractor draws over time with butterfly wings, orbit-drag rotates camera smoothly.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.2%
on click3.7%
on drag18.6%
on wheel16.3%
on enter + space12.5%
on arrow keys6.2%
on w/a/s/d6.5%
frame spread17.5 / 255
console errors0
js errors none

METRICS

runtime41.1s
tokens in2.4k
tokens out4.5k
cached13k
cost / run$0.0064