A command line program to generate a variety of high resolution fractal patterns eg. Mandelbrot/Multibrot, Tricorn/Multicorn sets.
- gcc/g++ v9.3.0 (Currently written in C and is expected to port to C++)
- Python v3.5 or greater
To get a local copy up and running follow these simple example steps.
- gcc/g++
- Python v3.5+
- Python Pillow Library
pip install pillow
Once you have gcc/g++ and python installed, compile main.c by running the following command in the top directory. Linux:
gcc -w src/main.c -o main -lm -fno-math-errno -ffinite-math-only -fno-signed-zeros -fsingle-precision-constant
Windows:
gcc -w src/main.c -o main.exe -lm -fno-math-errno -ffinite-math-only -fno-signed-zeros -fsingle-precision-constant
This can also be compiled using a g++, by replacing gcc with g++ in the above commands.
Once compilation is complete, run the program from main/main.exe. This generates a text file in ./outputs folder. Run src/gen.py
An example usage script is given in runc.sh
WIP
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the Apache 2.0 License. See LICENSE.txt
for more information.
Archit Jain - Linkedin - archit.jain38@gmail.com
Project Link: https://github.com/j-archit/cfractals