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.
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
METRICS
Transcript · 4 messages
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.
thinking
I'm building a self-contained HTML file that renders the Mandelbrot set with interactive pan and zoom controls.
index.html (4049 bytes)Successfully wrote 4049 bytes to index.html
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.