Skip to content

sarahmarshy/PenroseGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generates SVG files of Kite and Dart Penrose Tilings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages