oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · claude-opus-4.8

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
I'm building a self-contained HTML file that renders the Mandelbrot set with interactive pan and zoom controls.
write index.html (4049 bytes)
toolResult

Successfully wrote 4049 bytes to index.html

assistant

Created `index.html` — a self-contained Mandelbrot explorer. Features: - **Full-screen canvas** that resizes with the window - **Smooth coloring** via fractional escape-count (normalized iteration count) mapped through a cyclic gradient palette - **Click-and-drag to pan** (cursor changes to grab/grabbing) - **Mouse-wheel to zoom** toward the cursor position - **Adaptive iteration count** that increases as you zoom deeper - Uses `requestAnimationFrame` throttling for smooth interaction - No external resources or network requests Open it in any browser to explore.

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

modelclaude-opus-4.8
vendorAnthropic · Claude
harnesspi-agent
generated2026-07-08

EVALUATION

4/5 working

Mandelbrot renders with smooth blue gradient; drag pans and wheel zooms correctly, click/keys 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 drag9.3%
on wheel5.9%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread10.2 / 255
console errors0
js errors none

METRICS

runtime27.7s
tokens in2.0k
tokens out2.2k
cached4.5k
cost / run$0.0682