Lorenz attractor · llama-3.3-70b-instruct
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.
This one-shot run produced no runnable artifact.
agent produced no index.html
The transcript below shows what the model did — read it to see why the one shot fell short.
transcript · 2 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.
```json { "name": "write", "parameters": { "path": "index.html", "content": "<!DOCTYPE html><html><head><style>body { margin: 0; background-color: #000; overflow: hidden; }</style></head><body><script src=\"three.min.js\"></script><script>let scene = new THREE.Scene();let camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);let renderer = new THREE.WebGLRenderer();renderer.setSize(window.innerWidth, window.innerHeight);document.body.appendChild(renderer.domElement);let geometry = new THREE.BufferGeometry();let material = new THREE.LineBasicMaterial({ color: 0xffffff });let x = 0.1;y = 0.1;z = 0.1;let dx = 0;dy = 0;dz = 0;let a = 10;b = 28;c = 8/3;let points = [];function animate() {requestAnimationFrame(animate);dx = a * (y - x);dy = x * (b - z) - y;dz = x * y - c * z;x += dx * 0.01;y += dy * 0.01;z += dz * 0.01;points.push(new THREE.Vector3(x, y, z));if (points.length > 10000) {points.shift();}geometry.setAttribute('position', new THREE.Float32BufferAttribute(points.flatMap(p => [p.x, p.y, p.z]), 3));scene.clear();let line = new THREE.Line(geometry, material);scene.add(line);camera.position.z = 50;renderer.render(scene, camera);}animate();let orbitDrag = (event) => {if (event.button === 0) {camera.rotation.x += event.movementY * 0.01;camera.rotation.y += event.movementX * 0.01;}}document.addEventListener('mousemove', orbitDrag);</script></body></html>" } } ```
TAKE IT TO CODE
This run produced no artifact — reuse the prompt with a different model or your own pi-agent run.