oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · deepseek-v4-flash

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 · 4 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. Full-screen canvas
2. Smooth color gradient
3. Click-and-drag to pan
4. Mouse-wheel to zoom

Let me create a self-contained index.html file.
write /workspace/index.html (9195 bytes)
toolResult

Successfully wrote 9195 bytes to /workspace/index.html

assistant
thinking
Let me verify the file was created and looks correct.

The file is ready. Here's a summary of what `/workspace/index.html` does: **Mandelbrot Set — Single-Page App** - **Full-screen canvas** with device pixel ratio support for crisp rendering on retina displays. - **Smooth color gradient** — a 2048-entry HSL palette built at startup that cycles through blues, magentas, and reds with smoothly varying saturation and lightness. - **Smooth iteration counting** — uses the normalized iteration count algorithm (`iter + 1 - log(log(|z|)) / log(2)`) to eliminate color banding. - **Click-drag to pan** — drag the mouse (or single-finger drag on touch) to move around. - **Mouse-wheel to zoom** — zooms toward the cursor position (or pinch-zoom on touch with two fingers). - **Adaptive max iterations** — `maxIter` automatically increases as you zoom in (from 100 up to 2000), keeping deep zooms detailed. - **Progressive rendering** — renders in row chunks and uses an abort flag, so panning/zooming during an ongoing render cancels and restarts immediately, keeping the UI responsive. - **Touch support** — single-finger drag to pan, two-finger pinch to zoom.

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-flash
vendorDeepSeek
harnesspi-agent
generated2026-07-07

EVALUATION

4/5 working

Mandelbrot set with smooth gradient renders correctly; drag pans and wheel zooms as expected, click/keys do nothing (correct).

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 drag39.7%
on wheel6.9%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread18.6 / 255
console errors0
js errors none

METRICS

runtime28.1s
tokens in5.2k
tokens out3.3k
cached1.0k
cost / run$0.0011