Skip to content

HiWiSciFi/mandelbrot-c

Repository files navigation

New CPP Version of this Repo

Through our journey of trying different languages and environments we settled on a realtime Mandelbrot Set renderer in C++. You can find the application here.

Mandelbrot C

Quick and dirty implementation of a renderer for the Mandelbrot set. This was made after we realized that C code might be a bit better than the python code we wrote a few days before.... https://github.com/imurnaili/mandelbrot

Quick start

Download the binaries for your platform or compile directly from source.
When compiling from source you only need to compile the main.c file, the rest are headers relative to that source file.
However, in order to get maximum performance you might have to tell your compiler to use OpenMP.
Some compilers might also need you to specify -lm or something similar because the math.h header is being used but apparently isn't really part of the standard.

Output

The rendered images will be output into a newly generated subfolder called renders and will be overwritten on each execution, so be sure to backup your files if you want to keep your render!

Configuration file

The mandelbrot.config file defines the values to use for rendering the image. If no config file is present in the directory of the binary, the program will fall back to the default values. All prebuilt binaries come with a default config file included which has comments explaining what each property does. In case you compiled the program from source there also is a template config file in the root directory of the repository.

Rendering image squences

The configuration file contains values to specify the amount of frames to render and the increase in the zoom level for each frame. That way you can generate nice image sequences and animations.

Some nice images

Here are a few quick renders that we did in order to test our code: imgalt imgalt imgalt imgalt imgalt imgalt

About

Mandelbrot renderer in C

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •