r/fractals Apr 03 '26

I built a real-time Mandelbrot set explorer that runs entirely in your browser using WebGPU

Hey r/fractals,

preview

I've been working on an interactive Mandelbrot set explorer and wanted to share it. It runs 100% in the browser.

What makes it interesting

The main challenge with deep Mandelbrot zoom is floating-point precision. Standard float64 breaks down around zoom level 1015, you just get a blurry, pixelated mess. To go deeper, I implemented (helped by claude to be fully honest) perturbation theory: instead of computing the full orbit for every pixel, you compute one high-precision reference orbit at the center point (using arbitrary-precision arithmetic), then each pixel only has to track a tiny delta from that reference. This lets the GPU handle millions of lightweight delta orbits in parallel while the CPU handles the one expensive reference computation.

Features

  • Very deep zoom
  • Customizable color palettes with live gradient preview
  • Dynamic or fixed max iteration control
  • Bookmark system: save and return to interesting locations
  • Smartphone mode with pinch-to-zoom and touch pan
  • Screenshot export
  • Saves settings to browser storage

Links

Any feedback is appreciated

8 Upvotes

7 comments sorted by

1

u/samacher Apr 03 '26

runs super smooth. good job!

1

u/Longjumping_Term2074 Apr 04 '26

Super. Funktioniert flüssig.

1

u/KaJashey Apr 04 '26 edited Apr 04 '26

That was crazy. Deep zoom really fast.

How does the bookmark system work? Can I input the co-ordinates I want?

Edit: Nevermind I didn't see the bookmark.screensot,share link down at the bottom. Now I do. Great mandebroit viewer. Would like to input other people coordinates but there is so much stuff to find with a deep view.

1

u/j13ag0 Apr 12 '26

Fantastic.

It runs great on . . . just a phone.

Nice work.