Exploring ONNX recently gave me an excuse to dive deeper into GPU workloads in the browser. As a quick experiment, I built a Mandelbrot fractal renderer using WebGL.
This POC demonstrates:
๐ Iterative complex-number computation on the GPU
๐ Fragment shader coloring and palette cycling (that dazzling effect as the colors change)
๐ Interactive zoom with aspect-correct rendering (click drag to zoom in)
๐ Limitation of 32-bit floating point calculation in deep zoom levels (pixelation appears at deeper zoom)
It is a textbook naive implementation of Mandelbrot.
For each pixel:
start at z = 0
iterate z = zยฒ + c
stop when |z| > 2 or max iterations reached
color by iteration count
I am wondering how practical WebGL could be for complex visualization.
If you have a GPU and compatible browser, you can play with it.
Page available at my personal GitHub Page (temporarily removed here until resolving an issue with Google's Security)
Click drag a rectangle to zoom in.