oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · claude-opus-4.8

Output generated Cost / run $0.0682 Runtime 27.7s

Prompt for this run

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 ↗

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

modelclaude-opus-4.8
vendorAnthropic · Claude
harnesspi-agent
generated2026-07-08

METRICS

runtime27.7s
tokens in6.6k
tokens out2.2k
cached4.5k
cost / run$0.0682
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
I'm building a self-contained HTML file that renders the Mandelbrot set with interactive pan and zoom controls.
→ write index.html (4049 bytes)
toolResult

Successfully wrote 4049 bytes to index.html

assistant

Created `index.html` — a self-contained Mandelbrot explorer. Features: - **Full-screen canvas** that resizes with the window - **Smooth coloring** via fractional escape-count (normalized iteration count) mapped through a cyclic gradient palette - **Click-and-drag to pan** (cursor changes to grab/grabbing) - **Mouse-wheel to zoom** toward the cursor position - **Adaptive iteration count** that increases as you zoom deeper - Uses `requestAnimationFrame` throttling for smooth interaction - No external resources or network requests Open it in any browser to explore.