Skip to content

stefandevai/flake-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python n-flake fractal generator

  • Generates N-flake fractals such as a Sierpinski triangle, a Vicsek fractal, a pentaflake, an hexaflake and others n-flakes;

Instructions

  • It only has PyGame module as a dependency

  • Download the repo, install Python 3, install PyGame and run python n-flake-generator.py

  • Linux instructions if you already have git, python and pip installed:

      ```bash
      $ git clone https://github.com/stefandevai/n-flakes` <br>
      $ cd n-flakes` <br>
      $ pip install pygame` <br>
      $ python n-flake-generator`
    
      ```
    
  • You will be asked if you want to run the interactive mode (option 1) or an example demonstration (option 2);

  • For the interactive mode, you can choose the number of vertices, the number of iterations to build the flake, if you want it with a color scheme or outlined, like in the examples above;

  • While running the interactive version, you can:

    • Increase/decrease the number of interactions with right/left arrow keys;
    • Increase/decrease the number of vertices with up/down arrow keys;
    • Toggle colorful mode with the C key;
    • Toggle outline mode with the O key.

About

Python n-flake fractal generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages