oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · mimo-v2.5

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
The user wants me to create a single-page web app that renders the Mandelbrot set with:
1. Smooth color gradient
2. Full-screen canvas
3. Click-and-drag to pan
4. Mouse-wheel to zoom

This needs to be a single HTML file with inline CSS and JS, no external resources.

Let me create this. I'll use Canvas 2D API with pixel manipulation to render the Mandelbrot set efficiently.
write /workspace/index.html (5876 bytes)
toolResult

Successfully wrote 5876 bytes to /workspace/index.html

assistant
thinking
The file has been written. Let me verify it's there.

The Mandelbrot set viewer is ready at `/workspace/index.html`. Here's what it includes: - **Full-screen canvas** with high-DPI support - **Smooth coloring** using the continuous escape-time algorithm with a cosine-gradient palette (300 max iterations for detail) - **Click-and-drag** to pan around the fractal - **Mouse-wheel** zoom towards the cursor position (so you zoom into wherever you're pointing) - **Double-click** to reset to the default view - **Zero dependencies** — everything is self-contained in one file Open it in a browser and start exploring — there's infinite detail hiding in those spirals and bulbs.

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

modelmimo-v2.5
vendorXiaomi · MiMo
harnesspi-agent
generated2026-07-07

EVALUATION

3/5 working

Renders Mandelbrot set with pink/blue gradient; drag pans and wheel zooms correctly, but colors look flat/harsh.

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

METRICS

runtime21.7s
tokens in2.2k
tokens out2.2k
cached3.3k
cost / run$0.0009