API & MCP

Everything a person can do on Mandelbrot & Julia Deep Zoom Renderer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Mandelbrot & Julia Deep Zoom Renderer

Render the Mandelbrot set or a Julia set as a PNG image at any centre and zoom. Shallow views iterate in double precision; deep zooms beyond what doubles can resolve use perturbation theory with an exact BigInt reference orbit and rebasing, so a view of width 1e-22 or 1e-100 renders correctly. Centre coordinates may have hundreds of digits. The result lists the zoom factor, the method, the share of pixels inside the set and the escape-iteration statistics. Part of the Proofline math notebook.

Inputs of Mandelbrot & Julia Deep Zoom Renderer
FieldTypeDefaultDescription
setselect (mandelbrot, julia)"mandelbrot"Fractal
centerXtext"-0.75"Centre x (real part). A decimal number; deep zooms need as many digits as the zoom has zeros. For a Julia set, 0 centres the picture.
centerYtext"0"Centre y (imaginary part)
widthtext"3.5"View width. Width of the view in the complex plane, e.g. 3.5 for the whole set or 1e-30 for a deep zoom (at least 1e-250).
juliaRetext"-0.8"Julia constant c, real part
juliaImtext"0.156"Julia constant c, imaginary part
maxIterationsinteger1000Maximum iterations. Deep zooms need more: roughly 2,000 at 1e-10, 20,000 at 1e-22.
imageWidthinteger640Image width (pixels)
imageHeightinteger480Image height (pixels)
methodselect (auto, direct, perturbation)"auto"Method
paletteselect (classic, fire, ice, grey)"classic"Colours
colorDensitynumber1Colour density

Example request

The whole Mandelbrot set

curl -X POST https://prooflinefractal.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "proofline-fractal": { "type": "http", "url": "https://prooflinefractal.usefulweb.app/mcp" }
  }
}