oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · gpt-5-mini

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
**Calculating with formulas**

I’m looking at a formula for the continuous function, which relates to how I calculate nu. It seems that I should express nu as n + 1 minus the log of the log transformed with the square root of z values. But I wonder if using the common form will work too. I also need to generate a color palette with a length of 1024, interpolating between colors from blue to magenta. Finally, I’ll implement an interpolation function and write a file with my results.
write index.html (9929 bytes)
toolResult

Successfully wrote 9929 bytes to index.html

assistant

I've created a single-file, full-screen Mandelbrot explorer: index.html. It supports click-drag panning, mouse-wheel zoom (centered on cursor), double-click to reset, and touch gestures (drag and pinch). The coloring uses a smooth palette and continuous (smooth) iteration counts for gradient transitions. Open index.html in a browser to run.

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

modelgpt-5-mini
vendorOpenAI
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Mandelbrot set with smooth gold/blue gradient renders correctly; drag pans and wheel zooms work, click/keys don't (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 drag74.1%
on wheel34.8%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread45.2 / 255
console errors0
js errors none

METRICS

runtime70.8s
tokens in4.6k
tokens out4.3k
cached1.0k
cost / run$0.0097