Created by Dylan Chelo, Mason Jacob, and Nick Powers
This project uses the SFML Library to create an interative program that generates recursive graphics. Users interact with the program using keystrokes, to create the following fractals:
- Sierpinski's Triangle
- Koch's Snowflake
- Hilbert's Curve
- Dragon's Curve
This program is mainly tested on Ubuntu, and currently requires that the SFML library is installed using the command listed below. There was an attempt made to use the Linux version of the SFML Library installed directly into the libraries folder of this repository, and instructions on how to try that are in comments in the Makefile. However, at this time it is not 100% working, so the steps below are recommended.
- Install g++
sudo apt-get update
sudo apt-get install g++
- Install SFML library
The SFML Library is currently installed in this repository, however compiling the files using the Makefile is not 100% working. Therefore, it is necessary to install the library through the linux command line using the command below in order to use the current version of the Makefile.
sudo apt-get install libsfml-dev
- Clone this repository
- cd to the 'Recursive Graphics' directory
- Type 'make' in your terminal (without quotes)
- Type './generator.out' in your terminal (also without quotes)
- Read the Menu screen for instructions on how to use the generator
The most common issue with this method of installing and compiling the files with SFML is that the files do compile, however the following error occurs when the ./generator.out command is run to start the program:
Failed to open X11 display; make sure the DISPLAY environment variable is set correctly Aborted (core dumped)
The solution to this can be found here. To solve this problem, you must install a Windows XServer like Mwing, and then run the following command in the linux terminal to set the display correctly:
export DISPLAY=:0
To check that the display has been set, execute the following command:
echo $DISPLAY
which should return the set display, :0
When the program is run, if the music plays momentarialy and then cuts out, then a known but not understood issue is occuring that will cause SFML to break. The only way to fix this is to restart linux and comment out lines 33, 34, 36, 125, 129 and 165 in the main.cpp file (All the lines with the sf::Music class). While this will remove the music, this will allow the program to run correctly.










