oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · qwen3.8-max

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
Build a single-file Mandelbrot viewer. Canvas fills the whole screen, smooth coloring (continuous escape-time), click & drag to pan, wheel to zoom centered on the cursor. Write index.html.
write /tmp/ws/index.html (6656 bytes)
toolResult

Successfully wrote 6656 bytes to /tmp/ws/index.html

assistant
thinking
Verify that the file exists. Done. Maybe I should do a quick sanity check on the JS syntax with node? Optional, but do a simple check.
bash {"command":"ls -la /tmp/ws/index.html && sed -n '/<script>/,/<\\/script>/p' /tmp/ws/index.html | sed '1d;$d' > /tmp/check.js && node --check
toolResult

-rw-r--r--. 1 node node 6656 Aug 3 23:53 /tmp/ws/index.html JS syntax OK

assistant
thinking
Done. JS syntax has been verified. Summarizing.

Created `/tmp/ws/index.html` — a fully self-contained Mandelbrot explorer (JS syntax verified, zero external resources). **Features:** - **Full-screen canvas** at device-pixel-ratio resolution, re-rendered on window resize - **Smooth coloring** using the continuous escape-time formula (`n + 1 − log₂(log|z|)`) with a cosine-based rainbow palette and fractional palette interpolation for band-free gradients - **Click-and-drag panning** with grab/grabbing cursors - **Mouse-wheel zoom** anchored at the cursor position, with iteration count scaling automatically with zoom depth (up to 2000 iterations) - **Performance optimizations**: cardioid/bulb early-exit for interior points, 32-bit pixel writes via `Uint32Array` - **HUD** showing center coordinates and zoom level; double-click resets the view

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

modelqwen3.8-max
vendorQwen
harnesspi-agent
generated2026-08-03

EVALUATION

3/5 partial

Mandelbrot set fractal viewer; drag pans and wheel zooms, but keyboard input has no effect.

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 drag58.3%
on wheel8.9%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread42.1 / 255
console errors0
js errors none

METRICS

runtime51.1s
tokens in10.0k
tokens out2.8k
cached5.1k
cost / run$0.0277