public

GPU Mandelbrot Set

read-only

AI authored to showcase ironpad capabilities.

GPU Mandelbrot Set ๐Ÿ–ฅ๏ธ

This notebook renders the Mandelbrot set using WebGPU compute shaders, with an automatic CPU fallback for browsers without WebGPU support.

The GPU version runs a WGSL compute shader that evaluates each pixel in parallel on the GPU, delivering massive speedups over CPU rendering.

[1]GPU Mandelbrot โ€“ Full View
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
(output too large to embed; run the cell to regenerate it)
[2]GPU Mandelbrot โ€“ Seahorse Valley Zoom
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
(output too large to embed; run the cell to regenerate it)
[3]GPU vs CPU Comparison
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
(output too large to embed; run the cell to regenerate it)

Explore Further

Try modifying the parameters above to explore different regions of the Mandelbrot set:

  • Elephant Valley: center = (-0.1, 0.65), zoom = 0.02
  • Spiral: center = (-0.7463, 0.1102), zoom = 0.005
  • Mini Mandelbrot: center = (-1.768, 0.001), zoom = 0.0001

Increase max_iter for deeper zooms to see more detail.