Skip to content

This Python script generates a diagram of the largest possible regular polygon that can fit inside a square sheet of paper.

License

Notifications You must be signed in to change notification settings

travisgk/maxpolygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaxPolygon

This script generates a diagram of the largest possible regular polygon that can fit inside a square sheet of paper.

A heptagon.

The diagram has side measurements that help you cut out a perfect, symmetrical shape that maximizes the use of the available surface area.


Dependencies

You will need PIL and numpy to run this script. pip install pillow numpy


Results

A pentagon.A nonagon.A triangle. a stands for anticlockwise and c stands for clockwise.

Configuration

You can change constants under maxpolygon._config.py in order to modify the appearance.

About

This Python script generates a diagram of the largest possible regular polygon that can fit inside a square sheet of paper.

Topics

Resources

License

Stars

Watchers

Forks

Languages