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

The feather fractal. More...

Go to the source code of this file.

Detailed Description

The feather fractal.

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

I learned about the "duck" or "feather" fractal from an old blog post: https://algorithmic-worlds.net/blog/blog.php?Post=20110227

The idea is to iterate a function a fixed number of times for each point in the complex plane, and then color that point according to the magnitude of the mean of the orbit points. In this case we iterate the log of the "iabs" function:

\[ \log\left(\Re(z)+\vert\Im(z)\vert+c\right) \]

Coloring by the magnitude of the final iterate is interesting; however, I think it's even more interesting to color by the final iterate relative to the initial condition. Another interesting choice is to color by the relative argument.

Definition in file feather.cpp.