oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · deepseek-v4-pro

Output generated Cost / run $0.0026 Runtime 42.0s

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

modeldeepseek-v4-pro
vendorDeepSeek
harnesspi-agent
generated2026-07-07

METRICS

runtime42.0s
tokens in8.4k
tokens out2.0k
cached6.4k
cost / run$0.0026
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 me to create a single-page web app that renders the Mandelbrot set with smooth color gradient on a full-screen canvas, with click-and-drag panning and mouse-wheel zooming. All in one self-contained index.html file.

Let me build this.
→ write /workspace/index.html (4991 bytes)
toolResult

Successfully wrote 4991 bytes to /workspace/index.html

assistant
thinking
The file has been written. Let me verify it exists and looks correct.

The file is ready. Let me verify it's in place:

→ bash {"command":"ls -l /workspace/index.html && head -3 /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 5009 Jul 7 00:11 /workspace/index.html <!DOCTYPE html> <html lang="en"> <head>

assistant
thinking
Done. The file is created and ready. Let me summarize what was built.

Done. **`/workspace/index.html`** is a self-contained Mandelbrot viewer. Here's what it includes: - **Full-screen canvas** that redraws on window resize - **Smooth color gradient** — uses normalized iteration count (continuous escape-time) to eliminate banding, mapped through a 5-stop palette (black → deep blue → magenta → orange → yellow → white) - **Click-and-drag panning** — drag anywhere to move around the complex plane - **Mouse-wheel zoom** — zooms in/out centered on the cursor position, so the point under the pointer stays fixed - **Info overlay** (bottom-left) showing current center coordinates and zoom level - Zero external dependencies — all CSS and JS are inline