Mandelbrot

Python on the GPU · Fun & games

Every pixel runs escape(), a Python function compiled to a WebGPU compute shader. Drag to pan, scroll or pinch to zoom, double-click to dive.

300
1×– fps
checking GPU against CPython…
The GPU computes in 32-bit floats, so the picture turns blocky past about 10⁶× zoom.