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
- Open
https://soumendrak.github.io/mandelbrot/in any browser. - No build step, no installation, no server required.
- Deploy anywhere — GitHub Pages, Netlify, or any static host.
git clone https://github.com/soumendrak/mandelbrot.git
# Open index.html directlyLicense
Licensed under the MIT License.
Built with ❤️ and zero dependencies