Rotating icosahedron · mercury-2
Output generated Cost / run $0.0021 Runtime 5.5s
Prompt for this run
Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.
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 · 6 messages
Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.
{"command":"ls -1"}three.min.js
index.html (2517 bytes)Successfully wrote 2517 bytes to index.html
The **index.html** file has been created in the current directory. It: - Loads the local `three.min.js` script. - Sets up a full‑screen WebGL renderer. - Adds a rotating icosahedron with a MeshStandardMaterial. - Includes two colored point lights (pink and cyan) for dynamic lighting. - Generates a subtle starfield background using a Points mesh. - Implements an orbit‑style auto‑rotation by moving the camera around the object. - Handles window resizing. You can open `index.html` in a browser to see the scene.