Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.02 KB

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