oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · nemotron-3-ultra-550b-a55b

Output generated Cost / run $0.0131 Runtime 11.5s

Prompt for this run

Render the Mandelbrot set with a smooth color gradient on a full-screen canvas, with click-and-drag to pan and mouse-wheel to zoom.

⛨ 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

modelnemotron-3-ultra-550b-a55b
vendorNVIDIA
harnesspi-agent
generated2026-07-22

METRICS

runtime11.5s
tokens in11k
tokens out3.4k
cached0
cost / run$0.0131
Transcript · 6 messages
user

Render the Mandelbrot set with a smooth color gradient on a full-screen canvas, with click-and-drag to pan and mouse-wheel to zoom.

assistant
thinking
The user wants a single-page web app that renders the Mandelbrot set with:
1. Smooth color gradient
2. Full-screen canvas
3. Click-and-drag to pan
4. Mouse-wheel to zoom

I'll create a self-contained index.html file with CSS in a <style> tag and JS in a <script> tag.
→ write /workspace/index.html (9539 bytes)
toolResult

Successfully wrote 9539 bytes to /workspace/index.html

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

-rw-r--r-- 1 node node 9542 Jul 22 16:46 /workspace/index.html

assistant
thinking
The file is created successfully. The Mandelbrot set explorer is ready with:
- Full-screen canvas
- Smooth color gradient using sine-wave palette with smooth iteration coloring
- Click-and-drag to pan
- Mouse wheel to zoom (centered on cursor)
- Touch support for mobile (drag to pan, pinch to zoom)
- Keyboard shortcuts: R to reset, +/- to adjust iterations
- Adaptive iteration count based on zoom level
- Real-time info display showing center coordinates, zoom level, and iterations

Done. Created `/workspace/index.html` — a self-contained Mandelbrot explorer with: - **Smooth gradient**: 1024-color sine-wave palette + continuous iteration smoothing (log-log escape time) - **Full-screen canvas** with auto-resize - **Pan**: click-drag (mouse) or single-finger drag (touch) - **Zoom**: mouse wheel (centered on cursor) or pinch gesture (touch) - **Controls**: `R` reset, `+/-` adjust max iterations - **Adaptive iterations**: auto-scales with zoom depth for detail - **Live HUD**: shows center coords, zoom level, iteration count