oneshotlm
Compare all models on this prompt →

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.

⛨ 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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

METRICS

runtime42.8s
tokens in6.8k
tokens out3.3k
cached5.0k
cost / run$0.0049
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
→ write /workspace/index.html (9110 bytes)
toolResult

Successfully wrote 9110 bytes to /workspace/index.html

assistant

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.