Skip to content

SammygoodTunes/Fibonacci-Word-Fractal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Fibonacci-Word-Fractal

Recreation of the fractal obtained from the Fibonacci word.

Explanation:

The Fibonacci word is a special sequence of binary digits, that can be determined using the line of slope 1/φ (φ being the golden ratio [phi approx. = 1.618]).

Using the given binary sequence, we can establish a fractal with the help of a list of rules and the OEDR:

For each digit at position k:

  • If the digit is equaled to 0, draw a line/segment forward (in the direction it's currently facing).

  • If the digit is equaled to 0, turn left 90° if k is even or right 90° if k is odd.

This program is still currently being developed on, and will receive updates in the near future.

Controls:

[Space] -> Reset simulation

[Escape] -> Exit

Installation information:

A "requirements" text file is provided within the repository.

To install the necessary library(ies) to run the script:

1- Open CMD or GitBash

2- Change the current directory to the project path (cd path\to\project)

3- Install the library(ies) from the "requirements.txt" file using:

pip install -r requirements.txt

Development information:

Developed by: SammygoodTunes

Library(ies) used: Pygame 2.0.1, PyAutoGUI 0.9.52

About

Recreation of the fractal obtained by the Fibonacci word

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages