advanced

#25 Mandelbrot Fractal

The classic Mandelbrot set with zoom

The Mandelbrot set iterates z = z*z + c where z starts at zero and c is the pixel coordinate as a complex number. If the magnitude of z stays bounded after many iterations, the point is in the set. The iteration count at escape produces the classic fractal coloring. Animated zoom reveals infinite self-similar detail.

Key Concepts

Try this shader live in the Shader Sandbox editor with real-time preview.
Open in Sandbox

Source Code


    
← Previous Fog & Atmosphere Next → Julia Set

All Tutorials