Skip to content
Packing circles arbitrary shapes since 2019.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
circles.png
circles.py
circles.svg
shapefill.py Initial commit Jun 5, 2019
uk-1.png
uk-1.svg
uk-2.png
uk-2.svg
uk.png

README.md

circle-packing

Packing circles into arbitrary shapes since 2019.

See https://scipython.com/blog/packing-circles-inside-a-shape/ for more information.

Provide a shape in the form of a png image (shape to fill in black; background in white). Customize the image with the initialization arguments to the Circle class.

Run with simply:

python shapefill.py

The UK packed with circles

You can’t perform that action at this time.