Buddhabrot is a fractal shape representing the trajectories of points that escape the most famous fractal in the world, the Mandelbrot. Without getting too deeply inside the math the fractal is drawn by randomly selecting numbers in the complex plane, for each of these we calculate a bunch of values of the sequence:
Each time we compute a new value of Zn we increase the brigthness of the corrisponding pixel on the screen.
The code is pretty old and for some reason I decided to output the image as a ppm, so you will need to process it with ps/gimp, but from this simple code the results are pretty amazing, here are some:
I'm planning to update this project using GPU accelleration!