# Buddhabrot

A Buddhabrot iterated to 20,000 times.

The Buddhabrot is a fractal rendering technique related to the Mandelbrot set. Its name reflects its pareidolic resemblance to classical depictions of Gautama Buddha, seated in a meditation pose with a forehead mark (tikka) and traditional topknot (ushnisha). The map is created by counting the number of times in the iterative creation algorithm a point is visited.[1]

## Discovery

The Buddhabrot rendering technique was discovered and later described in a 1993 Usenet post to sci.fractals[2] by Melinda (then known as Dan) Green.[3]

Previous researchers had come very close to finding the precise Buddhabrot technique. In 1988 Linas Vepstas relayed similar images[4] to Cliff Pickover for inclusion in Pickover's forthcoming book Computers, Pattern, Chaos, and Beauty. This led directly to the discovery of pickover stalks. These researchers did not filter out non-escaping trajectories required to produce the ghostly forms typically reminiscent of Hindu art. The inverse, "Anti-Buddhabrot" filter produces images similar to no filtering. Green first named it Ganesh, since an Indian co-worker "instantly recognized it as the god 'Ganesha' which is the one with the head of an elephant."[2] The name Buddhabrot was coined later by Lori Gardi.[5]

## Rendering method

Mathematically, the Mandelbrot set consists of the set of points ${\displaystyle c}$ in the complex plane for which the iteratively defined sequence

${\displaystyle z_{n+1}={z_{n}}^{2}+c}$

does not tend to infinity as ${\displaystyle n}$ goes to infinity for ${\displaystyle z_{0}=0}$.

The Buddhabrot image can be constructed by first creating a 2-dimensional array of boxes, each corresponding to a final pixel in the image. Each box ${\displaystyle (i,j)}$ for ${\displaystyle i=1,\ldots ,m}$ and ${\displaystyle j=1,\ldots ,n}$ has size in complex coordinates of ${\displaystyle \Delta x}$ and ${\displaystyle \Delta y}$, where ${\displaystyle \Delta x=w/m}$ and ${\displaystyle \Delta y=h/n}$ for an image of width ${\displaystyle w}$ and height ${\displaystyle h}$. For each box, a corresponding counter is initialized to zero. Next, a random sampling of ${\displaystyle c}$ points are iterated through the Mandelbrot function. For points which do escape within a chosen maximum number of iterations, and therefore are not in the Mandelbrot set, the counter for each box entered during the escape to infinity is incremented by 1. In other words, for each sequence corresponding to ${\displaystyle c}$ that escapes, for each point ${\displaystyle z_{n}}$ during the escape, the box that ${\displaystyle ({\text{Re}}(z_{n}),{\text{Im}}(z_{n}))}$ lies within is incremented by 1. Points which do not escape within the maximum number of iterations (and considered to be in the Mandelbrot set) are discarded. After a large number of ${\displaystyle c}$ values have been iterated, grayscale shades are then chosen based on the distribution of values recorded in the array. The result is a density plot highlighting regions where ${\displaystyle z_{n}}$ values spend the most time on their way to infinity.

Nebulabrot
Anti-Buddhabrot

## Nuances

Rendering Buddhabrot images is typically more computationally intensive than standard Mandelbrot rendering techniques. This is partly due to requiring more random points to be iterated than pixels in the image in order to build up a sharp image. Rendering highly zoomed areas requires even more computation than for standard Mandelbrot images in which a given pixel can be computed directly regardless of zoom level. Conversely, a pixel in a zoomed region of a Buddhabrot image can be affected by initial points from regions far outside the one being rendered. Without resorting to more complex probabilistic techniques, rendering zoomed portions of Buddhabrot consists of merely cropping a large full sized rendering.

The maximum number of iterations chosen affects the image — higher values give sparser more detailed appearance, as a few of the points pass through a large number of pixels before they escape, resulting in their paths being more prominent. If a lower maximum was used, these points would not escape in time and would be regarded as not escaping at all.

Green later realized that this provided a natural way to create color Buddhabrot images by taking three such grayscale images, differing only by the maximum number of iterations used, and combining them into a single color image using the same method used by astronomers to create false color images of nebula and other celestial objects. For example one could assign a 2,000 max iteration image to the red channel, a 200 max iteration image to the green channel, and a 20 max iteration image to the blue channel of an image in an RGB color space. Some have labelled Buddhabrot images using this technique Nebulabrots.

Maximum iterations: 20
Maximum iterations: 100
Maximum iterations: 1,000
Maximum iterations: 20,000
Maximum iterations: 1,000,000

## Relation to the logistic map

The Buddhabrot and its logistic map.
Animation depicting the Buddhabrot and its logistic map.

The relationship between the Mandelbrot set as defined by the iteration ${\displaystyle z^{2}+c}$, and the logistic map ${\displaystyle \lambda x(1-x)}$ is well known. The two are related by the quadratic transformation:

{\displaystyle {\begin{aligned}c_{r}&={\frac {\lambda (2-\lambda )}{4}}\\c_{i}&=0\\z_{r}&=-{\frac {\lambda (2x-1)}{2}}\\z_{i}&=0\end{aligned}}}

The traditional way of illustrating this relationship is aligning the logistic map and the Mandelbrot set through the relation between ${\displaystyle c_{r}}$ and ${\displaystyle \lambda }$, using a common x-axis and a different y-axis, showing a one-dimensional relationship.

Melinda Green discovered 'by accident' that the Anti-Buddhabrot paradigm fully integrates the logistic map. Both are based on tracing paths from non-escaping points, iterated from a (random) starting point, and the iteration functions are related by the transformation given above. It is then easy to see that the Anti-Buddhabrot for ${\displaystyle z^{2}+c}$, plotting paths with ${\displaystyle c=({\text{random}},0)}$ and ${\displaystyle z_{0}=(0,0)}$, simply generates the logistic map in the plane ${\displaystyle \{c_{r},z_{r}\}}$, when using the given transformation. For rendering purposes we use ${\displaystyle z_{0}=({\text{random}},0)}$. Remember that in the logistic map all ${\displaystyle z_{r0}}$ ultimately generate the same path.

Because both the Mandelbrot set and the logistic map are an integral part of the Anti-Buddhabrot we can now show a 3D relationship between both, using the 3D axes ${\displaystyle \{c_{r},c_{i},z_{r}\}}$. The animation shows the classic Anti-Buddhabrot with ${\displaystyle c=({\text{random}},{\text{random}})}$ and ${\displaystyle z_{0}=(0,0)}$, this is the 2D Mandelbrot set in the plane ${\displaystyle \{c_{r},c_{i}\}}$, and also the Anti-Buddhabrot with ${\displaystyle c=({\text{random}},0)}$ and ${\displaystyle z_{0}=(0,0)}$, this is the 2D logistic map in the plane ${\displaystyle \{c_{r},z_{r}\}}$. We rotate the plane ${\displaystyle \{c_{i},z_{r}\}}$ around the ${\displaystyle c_{r}}$-axis, first showing ${\displaystyle \{c_{r},c_{i}\}}$, then rotating 90° to show ${\displaystyle \{c_{r},z_{r}\}}$, then rotating an extra 90° to show ${\displaystyle \{c_{r},-c_{i}\}}$. We could rotate an extra 180° but this gives the same images, mirrored around the ${\displaystyle c_{r}}$-axis.

The logistic map Anti-Buddhabrot is in fact a subset of the classic Anti-Buddhabrot, situated in the plane ${\displaystyle \{c_{r},z_{r}\}}$ (or ${\displaystyle c_{i}=0}$) of 3D ${\displaystyle \{c_{r},c_{i},z_{r}\}}$, perpendicular to the plane ${\displaystyle \{c_{r},c_{i}\}}$. We emphasize this by showing briefly, at 90° rotation, only the projected plane ${\displaystyle c_{i}=0}$, not

'disturbed' by the projections of the planes with non-zero ${\displaystyle c_{i}}$.

## References

1. ^ Jovanovich, Raka; et al. (2009), "A new visualization algorithm for the mandelbrot set.", Proceedings of the 10th WSEAS international conference on Mathematics and computers in biology and chemistry., World Scientific and Engineering Academy and Society (WSEAS), 2009.
2. ^ a b Daniel Green The deity hiding in the m-set
3. ^ Melinda Green The Buddhabrot Technique
4. ^ Linas Vepstas
5. ^ The University of Western Ontario’s newspaper Chaos (theory) rules for software developer(PDF12MB), p. 10