MRaster examples 21.0.0.0
Image Processing Library
Loading...
Searching...
No Matches
mandelbrot_distance.cpp File Reference

This program draws a mandelbrot set using the "distance". More...

Go to the source code of this file.

Detailed Description

This program draws a mandelbrot set using the "distance".

Author
Mitch Richling https://www.mitchr.me
Standards
C++20
Details

The normal Mandelbrot raster scan iteration fails to illustrate the thin filaments projecting off the Mandelbrot set – because the complex number at the center of the pixel misses the set, and thus the entire rectangular region of the complex plane covered by the pixel is marked as "escaped". In order to provide some graphical representation of these filaments, we can use a the Milnor and Thurston distance estimator as presented in 'The Science of Fractal Images' to draw pixels that have a center "close" to the Mandelbrot set. This program uses a simple color scheme to label points as described in the comment for the pixelStateEnum enumeration. All of the drawing code is confined to a switch statement at the end of the x loop to make it easy to play around with various color schemes.

Reference: Peitgen, Heinz-Otto and Saupe, Dietmar; 1988; The Science of Fractal Images; ISBN: 0-387-96608-0; pp 192-196

Definition in file mandelbrot_distance.cpp.