# Circle packing with fixed radius and fixed number of circle for each radius

**URL:** <https://discourse.mcneel.com/t/circle-packing-with-fixed-radius-and-fixed-number-of-circle-for-each-radius/53104>\
**Category:** Grasshopper\
**Created:** [January 16, 2018, 3:45am UTC](https://discourse.mcneel.com/t/circle-packing-with-fixed-radius-and-fixed-number-of-circle-for-each-radius/53104 "2018-01-16T03:45:15Z")\
**Posts on this page:** 1\
**Showing post:** 42

<div class="post-metadata">

**Author:** ![DanielPiker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danielpiker/32/666337_2.png) [@DanielPiker](https://discourse.mcneel.com/u/DanielPiker)\
**Post date:** [July 21, 2021, 11:44am UTC](https://discourse.mcneel.com/t/circle-packing-with-fixed-radius-and-fixed-number-of-circle-for-each-radius/53104/42 "2021-07-21T11:44:48Z")

</div>

Hi @anagha.bnca,

Here’s an example.  
The trick is to create a mesh with vertex colours, and pass that to the ImageCircles component.  
The mesh colours tell the circles what size to be when they are on that part of the mesh.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/f/1/af1530b4c067ba41e8567dd5da111fcc68f3abf4.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/3/0/230da1fea643b70d04a1b6706a31a47dc879d4cd.png)  
[circle\_sizegradient.gh](https://discourse.mcneel.com/uploads/short-url/obIVe4j5Vcyi0roW6PdJcFYaOBK.gh) (20.3 KB)

---

_[View the full topic](https://discourse.mcneel.com/t/circle-packing-with-fixed-radius-and-fixed-number-of-circle-for-each-radius/53104)._
