MandelCuda is a very minimalistic show case of CUDA for the calculation of the Mandelbrot set and its boundaries.
The iteration inside the Mandelbrot set generation loop, as found in the MandelbrotKernel is mathematically very simple and represented by:
with ( z_0 = 0 ) and ( c = x_0 + iy_0 ), where ( x_0 ) and ( y_0 ) are the real and imaginary parts of ( c ), calculated from pixel coordinates. During each iteration, we perform:
This iteration continues until either the magnitude of ( z_n ) squared (( x^2 + y^2 )) exceeds 4, indicating the point does not belong to the Mandelbrot set, or the maximum number of iterations is reached.
Compile the mandelcute-iness using make
Any contribution is welcome!
This project is open-source and is licensed under the MIT License. Please see the LICENSE file for detailed licensing information.
- Complete API documention
- Extend about better coloring schemes and zooming etc
- The coloring is based on a heuristic assumption of the distribution of iterations (A better color mapping could be done in sequence)