MRaster examples 22.0.0.0
Image Processing Library
Loading...
Searching...
No Matches
mandeldragon.cpp File Reference

Simple rendering of the mandeldragon fractal. More...

Go to the source code of this file.

Detailed Description

Simple rendering of the mandeldragon fractal.

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

The mandeldragon fractal is drawn using the same basic algorithm as the mandelbrot fractal, but using a different formula to iterate:

\[ z_{n+1} = (c + 1) \cdot z_n \cdot (1 - z_n) \]

With

\[ z_0 = \frac{1}{2} \]

The mandeldragon lives in a ball of radius 5 centered at the origin, so we can use this as a test for set inclusion.

Definition in file mandeldragon.cpp.