Home▸Generative Art & Algorithmic Patterns▸2D Mandelbrot: Orbit-Trap & Buddhabrot Explorer

2D Mandelbrot: Orbit-Trap & Buddhabrot Explorer

A CPU-computed 2D Mandelbrot explorer with two genuine, non-escape-time rendering modes: orbit-trap colouring (shading every pixel by its closest approach to a point, line, cross or ring during iteration) and a real Buddhabrot density plot built by histogramming millions of escaping orbit trajectories.

Generative Art & Algorithmic Patterns2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-mandelbrot ↗ Open standalone

This is a plain 2D-canvas Mandelbrot renderer built around two techniques that are deliberately not escape-time colouring: orbit-trap shading, which colours every pixel by how close its orbit ever came to a chosen shape, and the Buddhabrot, a statistical density plot made by histogramming the full trajectories of millions of randomly sampled escaping orbits. Drag to pan, scroll or double-click to zoom — the orbit-trap image recomputes instantly, while the Buddhabrot clears its histogram and starts accumulating fresh density at the new scale.

⚙ Under the hood

A CPU-computed 2D Mandelbrot explorer with two genuine, non-escape-time rendering modes: orbit-trap colouring, which shades every pixel by its closest approach to a point, line, cross or ring during iteration, and a real Buddhabrot density plot built by histogramming millions of escaping orbit trajectories. Drag to pan, scroll or double-click to zoom, and the Buddhabrot histogram accumulates progressively in real time.

mandelbrotfractalbuddhabrotorbit trapcomplex plane2D canvasgenerative art

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)