# Circle-packing Shapes

**URL:** <https://discourse.processing.org/t/circle-packing-shapes/30686>\
**Category:** Gallery\
**Created:** [June 13, 2021, 9:54pm UTC](https://discourse.processing.org/t/circle-packing-shapes/30686 "2021-06-13T21:54:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [July 13, 2022, 11:13am UTC](https://discourse.processing.org/t/circle-packing-shapes/30686/2 "2022-07-13T11:13:30Z")

</div>

I recently have [implemented](https://github.com/micycle1/PGS/blob/dev/src/main/java/micycle/pgs/commons/TangencyPack.java) another type of circle packing. This algorithm takes in a graph which specifies a desired pattern of circle tangencies and searches for an arrangement of circle positions and radii which satisfy that pattern.

It will be included in the next release of [Processing Geometry Suite](https://discourse.processing.org/t/processing-geometry-suite/29924).

![tangentPack](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/b/5b513abe195e2c77aaed6cec4886e1d9b9672731.gif)

These illustrations are from playing around with the complex numbers used to layout the circles…

![explode](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/e/5/e5a0cb4e40734db390e1f10b2a813677a194da15.gif)  
 ![vary](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/e/1/e1e15cce465523fabba39b882d2421718425a3da.gif)  
 ![acos](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/1/8/18dba1ac990c80c78ac11a23eded3b100d520f79.gif)  
 ![exp](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/e/8ec6c05afe83546fc1182ff2e1eeecfd597c6258.gif)

---

_[View the full topic](https://discourse.processing.org/t/circle-packing-shapes/30686)._
