Gnofract 4D is a program for drawing beautiful mathematically-based images known as fractals. See the manual for more details.
The most recent version may be obtained from https://github.com/fract4d/gnofract4d
Examples, screenshots etc are at https://fract4d.github.io/gnofract4d
Run:
meson setup --prefix ~/.local/ _build
meson compile -C _build
You can then run Gnofract 4D in the local directory:
./gnofract4d
Alternatively to install Gnofract 4D type:
meson install -C _build
You can then run it by clicking on the desktop icon or typing:
gnofract4d
Gnofract 4D requires these packages to run:
On Debian/Ubuntu, these can be installed with:
sudo apt install gcc gir1.2-gtk-4.0 python3-gi
To build from source you also need:
On Debian/Ubuntu, these can be installed with:
sudo apt install build-essential libglib2.0-dev-bin libjpeg-dev libpng-dev libpython3-dev libxml2-utils meson pkg-config
If FFmpeg is installed it will be possible to create videos.
On macOS, you can install the dependencies using brew:
brew install librsvg meson python3 pkg-config gtk4 pygobject3 libpng jpeg
Testing requires pytest for Python 3. In some distributions, 'pytest' is for Python 2. Run
pip3 install pytest
To get the latest.
Run individual tests from the top-level directory using pytest, e.g.: pytest fract4d/test_absyn.py
Optionally, install tox and test with all supported Python versions by running: tox
On macOS you might find an error regarding the number of opened files, you can increase the system limit with ulimit -Sn 10000
Pylint is being used to detect code that doesn't follow the PEP8 style guide and potentially erroneous code in Python. You can run it in two ways:
Directly (firstly you should install pylint through pip3):
$ pip3 install pylint $ ./bin/pylint.sh
Using docker (same environment as pipeline):
$ ./docker/bin/run_lint.sh
You can only regenerate the docs if you clone the Gnofract 4D git repo - the source dist packages contain the generated docs but not the input files for the generation process. To regenerate the docs:
git submodule update --init
snap install hugo --channel=extended
instead of apt install hugo
brew install hugo
./createdocs.py