Skip to content

coryab/chaos_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chaos Game

Mail: cory@balaton.dev

Read about the chaos game here.

Read about the sierpinski triangle here.

Libraries

Compiling

The steps below should for most Linux systems. I have tested it using Fedora.

Matplot++ uses gnuplot, so make sure that you have it installed on your system. On Fedora, you can install it like this:

sudo dnf install gnuplot

For MacOS and Windows, other steps are most likely necessary.

One time step

I would recommend creating a new directory within the project called build and then open a terminal inside that directory. Then you can run this command to generate a MakeFile:

cmake ..

Whenever you want to compile the code, just run this command inside the build directory:

make

Executing code

After compiling the code, there should be a file called main inside the build directory. To execute it, just run:

./main

You should then see a sierpinski triangle, and when the program is done, it will save the image.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published