oneshotlm
Compare all models on this prompt →

Rotating icosahedron · north-mini-code

Output generated Cost / run $0.0000 Runtime 37.6s

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.

⛨ 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

modelnorth-mini-code
vendorCohere
harnesspi-agent
generated2026-07-22

METRICS

runtime37.6s
tokens in5.3k
tokens out2.2k
cached0
cost / run$0.0000
Transcript · 8 messages
user

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.

assistant
thinking
The user wants me to create a single-page web app (index.html) that:
1. Renders a full-screen scene
2. Uses three.min.js (already present in the directory)
3. Has a rotating icosahedron
4. Has two colored point lights
5. Has orbit-style auto-rotation
6. Has a subtle starfield background
7. Everything should be in one self-contained file with CSS in <style>, JS in <script>, and inline HTML

Let me first check what's currently in the directory to see if three.min.js exists.
→ bash {"command":"ls -la"}
toolResult

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

assistant
thinking
The user wants me to create a single-page web app with:
1. A full-screen scene rendered using the pre-provided three.min.js (global THREE)
2. A rotating icosahedron
3. Two colored point lights with orbit-style auto-rotation
4. A subtle starfield background

According to the guidelines, I need to:
- Build a single-page web app and write it ALL into one self-contained file named index.html
- Use CSS in a <style> tag, JS in a <script> tag, inline
- Use NO external resources, CDNs or network requests
- Load three.min.js with a plain <script src="three.min.js"></script> using its exact filename
- Create the complete artifact

Let me create the index.html file with the complete 3D scene.
→ write index.html (4975 bytes)
toolResult

Successfully wrote 4975 bytes to index.html

assistant
thinking
The user wants a single-page web app using three.min.js that's self-contained. I need to create an HTML file with inlined CSS and JS that uses the provided three.min.js library. I've created index.html with:
- A rotating icosahedron
- Full-screen scene
- Two colored point lights (red and cyan)
- Orbit-style auto-rotation
- Subtle starfield background
- Mouse interaction for additional rotation
- Responsive design
- Animated lights that pulse and move in orbits

Let me verify the file exists and meets the requirements.
→ bash {"command":"ls -la"}
toolResult

total 652 drwxrwxrwx 4 node node 128 Jul 22 16:56 . drwxr-xr-x 1 root root 4096 Jul 22 16:56 .. -rw-r--r-- 1 node node 4975 Jul 22 16:56 index.html -rw-r--r-- 1 node node 603445 Jul 22 16:56 three.min.js

assistant
thinking
I created the complete HTML file with all requirements:
- Self-contained single file (index.html)
- Uses pre-provided three.min.js
- Full-screen scene with rotating icosahedron
- Two colored point lights (red and teal)
- Orbit-style auto-rotation
- Subtle starfield background
- CSS in <style> tag, JS in <script> tag
- No external resources or network requests

The file is present in the current directory. The app will render a 3D scene with an icosahedron that rotates continuously, two point lights that orbit the scene and pulse, and a starfield background. It also includes mouse interaction for additional control.

I've created the complete single-page web application at `index.html`. The scene features: - **Rotating Icosahedron**: A geometric mesh with wireframe=false, smooth Phong shading, and shininess - **Two Colored Point Lights**: - Red light (0xFF6B6B) positioned initially at (-5,3,2) - Teal light (0x4ECDC4) positioned initially at (5,-3,2) - Both lights orbit the scene and pulse with sine waves - **Orbit-style Auto-rotation**: The icosahedron rotates continuously on X and Y axes - **Subtle Starfield Background**: 1000 white stars with transparency - **Mouse Interaction**: Adds dynamic orbital control to the rotation - **Responsive**: Handles window resize events - **Single File**: All CSS and JavaScript inline, using the pre-provided `three.min.js` The application runs fully sandboxed with no network requests, completely self-contained in one file. Open `index.html` in a web browser to see the 3D scene in action.