Rotating icosahedron · glm-5.3
Output generated Cost / run $0.0105 Runtime 21.7s
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 /tmp/job-X0fkM1"}events.jsonl three.min.js
/tmp/job-X0fkM1/index.html (3726 bytes)Successfully wrote 3726 bytes to /tmp/job-X0fkM1/index.html
Done — `index.html` is in place. It features: - **Icosahedron**: flat-shaded `MeshStandardMaterial` with a subtle white wireframe edge overlay for geometric definition - **Two colored point lights**: warm red (#ff3366) and cool cyan (#33ccff), orbiting the shape in opposite directions so the faces shift through red/blue highlights - **Auto-rotation**: continuous Y-axis spin with a gentle tilt wobble - **Starfield**: 1,500 points scattered on a distant spherical shell, drifting slowly - **Extras**: faint ambient light, resize handling, and pixel-ratio capping for crisp-but-performant rendering Everything is self-contained and runs fully offline using the local `three.min.js`.