/PenroseGenerator

Generates SVG files of Kite and Dart Penrose Tilings

Primary LanguagePythonApache License 2.0Apache-2.0

PenroseGenerator

This script generates SVG files containing Kite and Dart Penrose Tilings.

https://en.wikipedia.org/wiki/Penrose_tiling

To run

python penrose.py [shape] [number generations] [file name]

This will generate Penrose tilings of type P2. They have two main initial shapes - star and sun.

The script will generate [number of generations] files. Each will be a successive generation of the tiling.

Sun Configuration

Here are screenshots of the SVG files generated by: python penrose.py sun 6 sun_tiling.svg

Initial configuration:

initial config

Generation 1:

gen1

Generation 2:

initial config

Generation 3:

initial config

Generation 4:

initial config

Generation 5:

initial config

Star configuration

Here is a screenshot of the last SVG file generated by: python penrose.py star 6 star_tiling.svg

star tile