Vanille-N / mandelbrot

Interactive TUI to generate images of the Mandelbrot set

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mandelbrot

License: MIT

A TUI written in C++ focused on creating images of the Mandelbrot set using a minimalist language designed for easy navigation and many tools for choosing color palettes, image dimensions, and other metaparameters.

! NOTE
This project relies heavily on ANSI escape codes
for interactive rendering. Truecolor support is
necessary, as well as being able to reduce
terminal font size.
Correct execution has not been tested anywhere
other than the default Terminal for Ubuntu 18.04+.

It is recommended to use the terminal in full screen and reduce the font size for comfort. A script running at the beginning of the execution and relying on tput will guide you to the right terminal size. It is possible to opt out of this by using the -s option.

An alternative is to edit a few constants for preview size at the beginning of src/consts.h. Integrity of the graphical interface is not guaranteed.

How to build and run:

$ cd build
$ make
$ ./mandelbrot

See LANGUAGE.md for an overview of the language or GRAMMAR.md for an uncommented list of commands and constructs. Help can be accessed from within the script by typing scope ? or simply ?.

Below is a sample of the kind of image that can be generated. All of them are also available in img/



About

Interactive TUI to generate images of the Mandelbrot set


Languages

Language:C++ 88.0%Language:Python 5.8%Language:C 4.1%Language:Makefile 1.7%Language:Shell 0.4%