Compare all models on this prompt →
Mandelbrot explorer · gpt-5.4-nano
Output generated Cost / run $0.0073 Runtime 39.5s
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
modelgpt-5.4-nano
vendorOpenAI
harnesspi-agent
generated2026-07-22
METRICS
runtime39.5s
tokens in6.7k
tokens out4.8k
cached0
cost / run$0.0073
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
**Writing index.html for Pan functionality** I’m thinking about how to implement the pan feature. On mousedown, I'll need to record the starting complex position. Then, as the mouse moves, I’ll adjust the center accordingly. I also want to make sure it supports resizing, so I’ll keep that in mind while working on the code. There seems to be a lot to consider here, but I’m ready to get started on writing the index.html file!
→ write
index.html (14474 bytes)toolResult
Successfully wrote 14474 bytes to index.html
assistant
Created `index.html` with a full-screen Mandelbrot set renderer on a canvas, using smooth gradient coloring, with: - **Click + drag** to **pan** - **Mouse wheel** to **zoom** (zoom centered on cursor) - **Double-click** and **press `0`** to reset view File: `./index.html`