oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · gpt-5.4-nano

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
**Writing index.html for Pan functionality**

I’m thinking about how to implement the pan feature. On mousedown, I'll need to record the starting complex position. Then, as the mouse moves, I’ll adjust the center accordingly. I also want to make sure it supports resizing, so I’ll keep that in mind while working on the code. There seems to be a lot to consider here, but I’m ready to get started on writing the index.html file!
write index.html (14474 bytes)
toolResult

Successfully wrote 14474 bytes to index.html

assistant

Created `index.html` with a full-screen Mandelbrot set renderer on a canvas, using smooth gradient coloring, with: - **Click + drag** to **pan** - **Mouse wheel** to **zoom** (zoom centered on cursor) - **Double-click** and **press `0`** to reset view File: `./index.html`

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.4-nano
vendorOpenAI
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Smooth-shaded Mandelbrot renders with correct drag-pan and wheel-zoom; keyboard inputs have no additional 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 drag22.5%
on wheel7.1%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread11.5 / 255
console errors0
js errors none

METRICS

runtime39.5s
tokens in6.7k
tokens out4.8k
cached0
cost / run$0.0073