Mandelbrot explorer · kat-coder-pro-v2
Output generated Cost / run $0.0049 Runtime 42.8s
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.
/workspace/index.html (9110 bytes)Successfully wrote 9110 bytes to /workspace/index.html
Done! I've created a self-contained Mandelbrot set explorer in `/workspace/index.html` with: **Features:** - **Smooth color gradient** using a continuous hue-cycling palette (purple → blue → cyan → green → yellow → orange → red → magenta) - **Smooth coloring algorithm** (renormalized iteration count) to eliminate color banding - **Click-and-drag** to pan across the fractal - **Mouse wheel** to zoom in/out, centered on the cursor position - **Touch support** (single-finger drag, pinch-to-zoom) - **Dynamic iteration depth** that increases as you zoom deeper - **Cardioid optimization** for faster rendering in the main body - Real-time display of center coordinates, zoom level, and iteration count - Double-click or button to reset the view The entire app is contained in a single HTML file with no external dependencies.