Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 772 Bytes

File metadata and controls

22 lines (14 loc) · 772 Bytes

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.

A nonagon without labels. You can also tell the script to render a PDF that can be printed out and directly cut out. a stands for anticlockwise and c stands for clockwise.


Dependencies

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


Configuration

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