oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · deepseek-v4-pro

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 ↗
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

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

EVALUATION

4/5 working

Mandelbrot set renders with glowing gradient; drag pans and wheel zooms correctly; click/keyboard have no effect as expected.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
on drag4.0%
on wheel2.7%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread5.7 / 255
console errors0
js errors none

METRICS

runtime42.0s
tokens in2.0k
tokens out2.0k
cached6.4k
cost / run$0.0026