oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · seed-2.0-code

Output generated Cost / run $0.0191 Runtime 73.9s

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

modelseed-2.0-code
vendorByteDance · Seed
harnesspi-agent
generated2026-08-13

METRICS

runtime73.9s
tokens in14k
tokens out4.8k
cached4.8k
cost / run$0.0191
Transcript · 6 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
Let me build a Mandelbrot set explorer with smooth coloring, pan/zoom functionality. I'll create a single HTML file with embedded CSS and JavaScript.

Key features needed:
1. Full-screen canvas
2. Smooth color gradient for the Mandelbrot set
3. Click-and-drag to pan
4. Mouse wheel to zoom
5. Efficient rendering

Let me start by creating the index.html file.
→ write /tmp/ws/index.html (17215 bytes)
toolResult

Successfully wrote 17215 bytes to /tmp/ws/index.html

assistant
thinking
The file is created. Let me verify it exists and then let the user know the task is complete.
→ bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 17219 Aug 13 01:29 /tmp/ws/index.html

assistant
thinking
The Mandelbrot Explorer is ready. The index.html file contains:

1. Full-screen canvas rendering
2. Smooth color gradient using a cosine palette
3. Click-and-drag panning with visual feedback
4. Mouse wheel zoom (with zoom centered on mouse position)
5. Double-click to zoom in on a point
6. Touch pinch-to-zoom support for mobile
7. Adaptive iteration count based on zoom level
8. Smooth coloring algorithm for continuous gradients
9. Responsive UI with coordinate display and loading indicator

The app runs completely offline with no external resources.

Created `index.html` - a full-screen Mandelbrot set explorer with: - **Smooth gradient coloring** using continuous coloring algorithm - **Click-and-drag panning** with low-res preview during drag - **Mouse wheel zoom** that zooms toward cursor position - **Double-click** to center and zoom in - **Touch pinch-to-zoom** for mobile devices - Adaptive iteration count based on zoom level - Real-time coordinate display - Loading indicator during renders Open in any browser to run. You can zoom deep into the fractal (up to 10^14x) before hitting floating-point precision limits.