oneshotlm
Compare all models on this prompt →

Mandelbrot explorer · minimax-m2.7

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 ↗
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
The user wants me to create an interactive Mandelbrot set visualization with:
1. Full-screen canvas
2. Smooth color gradient
3. Click-and-drag to pan
4. Mouse-wheel to zoom

This is a single self-contained HTML file project. Let me create this.
write /workspace/index.html (7258 bytes)
toolResult

Successfully wrote 7258 bytes to /workspace/index.html

assistant
thinking
I've created the Mandelbrot set visualization. Let me verify the file was written correctly.
bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 7260 Jul 7 00:11 /workspace/index.html

assistant
thinking
The file is created. It's a self-contained HTML file that renders the Mandelbrot set with:
1. Smooth color gradient using HSL color mapping with continuous iteration values
2. Full-screen canvas
3. Click-and-drag to pan
4. Mouse-wheel to zoom (with zoom centered on mouse position)

Let me summarize what was created.

Created `index.html` — a self-contained Mandelbrot set explorer: **Features:** - **Smooth coloring**: Uses fractional iteration values with HSL gradient cycling through the hue spectrum (blue → purple → pink → orange), creating smooth color bands rather than harsh contour lines - **Full-screen canvas**: Automatically fills the viewport - **Pan**: Click and drag anywhere to pan the view - **Zoom**: Mouse wheel zooms toward the cursor position (up to ~3 billion magnification) - **Adaptive iteration**: Max iterations increase as you zoom in for more detail - **Info panel**: Shows real-time center coordinates, zoom level, and iteration count The classic Mandelbrot set equation `z = z² + c` is computed per-pixel. Points that escape quickly get lighter colors; points in the set remain black. The smooth coloring uses `log(log(z))` normalization to eliminate the banded effect.

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

modelminimax-m2.7
vendorMiniMax
harnesspi-agent
generated2026-07-07

EVALUATION

4/5 working

Mandelbrot set renders with smooth color gradient; drag pans and wheel zooms correctly, keyboard inputs have no effect as expected.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
on drag40.8%
on wheel8.9%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread12.7 / 255
console errors0
js errors none

METRICS

runtime62.3s
tokens in157
tokens out2.3k
cached8.4k
cost / run$0.0023