oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · qwen3.5-397b-a17b

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 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

I need to create a self-contained index.html file with all CSS and JS inline. Let me build this step by step:

1. HTML structure with a full-screen canvas
2. CSS for full-screen display
3. JavaScript for:
   - Mandelbrot set calculation with smooth coloring
   - Canvas rendering
   - Mouse event handling for pan and zoom
   - Performance optimization (maybe using requestAnimationFrame and chunked rendering)

Let me write this complete file.
write /tmp/ws/index.html (10566 bytes)
toolResult

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

assistant
thinking
The file has been created successfully. Let me verify it exists and provide a summary to the user.

Created `/tmp/ws/index.html` - a self-contained Mandelbrot set explorer with: **Features:** - **Smooth color gradient** using escape time algorithm with HSL cycling through purple→blue→cyan→green→yellow→red - **Full-screen canvas** that adapts to window size - **Click-and-drag panning** to explore the fractal - **Mouse-wheel zooming** that zooms toward the cursor position - **Touch support** for mobile devices - **Double-click to reset** to the default view - **Dynamic iteration count** that increases with zoom level for better detail - **Info panel** showing center coordinates, zoom level, and iterations **Controls:** - Drag to pan - Scroll to zoom (in/out) - Double-click to reset view Open the file in a browser to explore the Mandelbrot set!

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.5-397b-a17b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Mandelbrot set with purple/pink gradient renders correctly; drag pans and wheel zooms, but click and keyboard have 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 drag15.0%
on wheel4.1%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread13.1 / 255
console errors0
js errors none

METRICS

runtime41.4s
tokens in6.3k
tokens out3.2k
cached0
cost / run$0.0099