Computer Graphics: Fractals generation using Mandelbrot Set with C/C++ in Code::Blocks

“Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line.” – Benoit Mandelbrot
The Mandelbrot set is created by a general technique where a function of the form
zn+1 = f(zn)
is used to create a series of a complex variable. In the case of the Mandelbrot, the function is
f(zn) = zn2 + zo
This series is generated for every initial point zo on some partition of the complex plane separating the complex plane into two categories:

  1. Points inside the Mandelbrot set
  2. Points outside the Mandelbrot set

Source Code :


Output
SHARE Computer Graphics: Fractals generation using Mandelbrot Set with C/C++ in Code::Blocks

You may also like...

3 Responses

  1. Sir, I truly admire your incredible programming skills, they are beyond our scope! what you just did there is IMPRESSIVE! I'm astonished with the incredible Mandelbrot Set you just published there, it is simple beautiful.

    I wanna thank you so much for taking your time and hospitality for providing us this one of kind code, it's incredible, once again thank you so much for this, I'm gonna keep on advertising your amazing blog, thank you so much Sir for helping us with this amazing Mandelbrot Set Code, my utmost respect goes for you, thank you so much.

    I'm gonna frequent your blog very often sir, and keep spreading the word for it.
    Again, thank you so much 🙂

  2. free says:

    I don't know about all that above but thanx as well, I'm a beginner teaching myself programming from posted internet info. Yours was the first fractal I have been able to compile and make run. If only my Norton would quit removing the .exe I could explore it a bit further.

  3. Anna says:

    Code Blocks won't compile it.. It points two errors:

    === Build: Debug in mandelbrot (compiler: GNU GCC Compiler) ===
    In function Z8setPixeliim':
    undefined reference to
    [email protected]'|
    In function [email protected]':
    undefined reference to
    [email protected]'|
    |=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

    Do you have any idea why? Thanks for helping! 😀

Leave a Reply

Your email address will not be published. Required fields are marked *

Share