Skip to content

Gjacquenot/Pythagoras_tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pythagoras Tree

This repository contains scripts to create SVG and PNG images of a Pythagoras tree, a plane fractal constructed from squares.

A Python and a MatLab scripts are available to generate these SVG and PNG images.

Below are some examples of command lines for the Python script

python Pythagoras_tree.py --help
python Pythagoras_tree.py --ratio 1.0 --level 5
python Pythagoras_tree.py --ratio 1.0 --level 6
python Pythagoras_tree.py --ratio 1.0 --level 12
python Pythagoras_tree.py --ratio 1.0 --level 5 -c summer
python Pythagoras_tree.py --ratio 1.0 --level 5 -c spring
python Pythagoras_tree.py --ratio 1.0 --level 5 -c autumn
python Pythagoras_tree.py --ratio 1.0 --level 5 -c winter

The presented image was generated with the following instruction

python Pythagoras_tree.py --ratio 1.0 --level 13 -c summer

Alt text

About

Create a SVG image of a Pythagoras tree

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published