oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · kimi-k3

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
Write index.html with Mandelbrot renderer, smooth coloring, drag pan, wheel zoom anchored at cursor.
write /workspace/index.html (4978 bytes)
toolResult

Successfully wrote 4978 bytes to /workspace/index.html

assistant
thinking
Done. Brief summary.

Created `/workspace/index.html` — a self-contained Mandelbrot explorer: - **Smooth coloring**: large bailout radius + fractional iteration (`nu = i + 1 - log(log|z|)/log2`) fed into a cosine palette, no banding - **Pan**: click-and-drag, updated live - **Zoom**: mouse wheel anchored at the cursor point, with iteration count scaling up as you zoom in - Full-screen canvas with devicePixelRatio support, chunked rendering via `requestAnimationFrame` so the UI stays responsive, and a HUD showing center/zoom/iterations Open it directly in a browser — no dependencies or network needed.

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

modelkimi-k3
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-28

EVALUATION

4/5 working

Mandelbrot renders with smooth 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 drag89.7%
on wheel33.5%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread63 / 255
console errors0
js errors none

METRICS

runtime53.5s
tokens in3.0k
tokens out1.8k
cached1.5k
cost / run$0.0084