oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · qwen3-coder

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

I'll create a self-contained HTML file that renders the Mandelbrot set with smooth color gradients, panning, and zooming capabilities.

write index.html (8434 bytes)
toolResult

Successfully wrote 8434 bytes to index.html

assistant

I've created a complete Mandelbrot set explorer in a single HTML file with the following features: 1. Full-screen canvas that resizes with the window 2. Smooth color gradient rendering using HSL color mapping 3. Click-and-drag panning functionality 4. Mouse wheel zooming with fixed-point zooming (zooms toward cursor position) 5. Automatic iteration count adjustment for better detail when zooming 6. Reset view by clicking anywhere 7. Responsive design that works on any screen size The implementation uses smooth coloring techniques to create beautiful gradient transitions and handles complex number calculations efficiently. The interface provides intuitive navigation with visual feedback (cursor changes during dragging). To use the explorer: - Drag to pan around the Mandelbrot set - Scroll to zoom in/out (zooms toward your cursor position) - Click anywhere to reset to the initial view - The view automatically adjusts detail level based on zoom The fractal is rendered using the classic Mandelbrot iteration algorithm with smooth coloring for beautiful gradients. The color scheme transitions from deep blues through purples to yellows as iteration counts increase.

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-coder
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Smooth-colored Mandelbrot renders correctly; drag pans and wheel zooms deeply, click/keyboard 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 drag49.7%
on wheel23.2%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread31.3 / 255
console errors0
js errors none

METRICS

runtime29.1s
tokens in102
tokens out2.2k
cached5.2k
cost / run$0.0028