GitHub


Features

  • Click to zoom in, Shift+click to zoom out
  • Drag to pan around the fractal plane
  • Scroll wheel to adjust iteration depth
  • Smooth colour gradient (orange → deep blue → black)
  • Display of current complex-plane coordinates
  • Reset button to return to default view
  • Dark theme with orange accent (#ff6b35)

How It Works

The set is rendered by iterating z = z² + c for each pixel in the complex plane, up to a configurable iteration limit. The colour is determined by how many iterations it takes for |z| to exceed 2 (the escape radius). A smooth colouring algorithm maps iteration counts to HSL values, producing the gradient. Zoom changes the view boundaries; pan adjusts the centre point.

Usage

  1. Open https://soumendrak.github.io/mandelbrot/ in any browser.
  2. No build step, no installation, no server required.
  3. Deploy anywhere — GitHub Pages, Netlify, or any static host.
git clone https://github.com/soumendrak/mandelbrot.git
# Open index.html directly

License

Licensed under the MIT License.


Built with ❤️ and zero dependencies

Read the original on github.com ↗