# Grasshopper pattern

**URL:** <https://discourse.mcneel.com/t/grasshopper-pattern/187969>\
**Category:** Grasshopper\
**Tags:** windows, python, rhino7, grasshopperrhino, rhino8\
**Created:** [July 12, 2024, 1:38pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969 "2024-07-12T13:38:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyal\_gal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eyal_gal/32/592508_2.png) [@Eyal\_gal](https://discourse.mcneel.com/u/Eyal_gal)\
**Post date:** [July 12, 2024, 1:38pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/1 "2024-07-12T13:38:19Z")

</div>

Can someone help me? I am trying to make this exact pattern in Grasshopper

 ![WhatsApp Image 2024-07-11 at 23.13.11](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/c/0/4c0a76910788db56aeee66318cb10424a916ea87.jpeg)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [July 12, 2024, 2:03pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/2 "2024-07-12T14:03:34Z")

</div>

> [@Rotation problems](https://discourse.mcneel.com/t/rotation-problems/164126/12):
>
> Heh-heh. sunglasses[rotate\_gid\_2023\_Aug14e.gh](https://discourse.mcneel.com/uploads/short-url/wUCiHZ2M6oUrGpr5b40h0131bO6.gh) (24.0 KB)

[![](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/c/2/6c26156a5c7574a5261834528b91d7afa2465b57.png) ](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/c/2/6c26156a5c7574a5261834528b91d7afa2465b57.png)

> [@Voronoi Sunflower Pattern with Fibonacci Ratios](https://discourse.mcneel.com/t/voronoi-sunflower-pattern-with-fibonacci-ratios/183606/4):
>
> P.S. Added Voronoi component to rotate\_gid\_2023\_Aug14e.gh ([above](https://discourse.mcneel.com/t/voronoi-sunflower-pattern-with-fibonacci-ratios/183606/3) and [here](https://discourse.mcneel.com/t/rotation-problems/164126/12)) and removed everything else: [golden\_spiral\_2023\_Jun8a.gh](https://discourse.mcneel.com/uploads/short-url/zYvkybfyQrkRot5J8aHJ60PlPJ7.gh) (6.9 KB) P.S. Added cull (white) and offset (purple) groups: [golden\_spiral\_2023\_Jun8b.gh](https://discourse.mcneel.com/uploads/short-url/gSQV7svppaTT9Fr36pbifKcuf2N.gh) (31.0 KB)

> [@Help Us Help You](https://discourse.mcneel.com/t/help-us-help-you/50034):
>
> Asking questions and getting answers is what this forum is all about. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions, but don’t think of them as rules and especially don’t think of them as guarantees. 1. Choose a descriptive title for your post Don’t title your question Help! or I have a problem or Deadline tonight!, but actually describe the problem you are having. 2. Be s…

> **7. This is not a _do-my-work-for-me_ group**

---

<div class="post-metadata">

**Author:** ![Eyal\_gal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eyal_gal/32/592508_2.png) [@Eyal\_gal](https://discourse.mcneel.com/u/Eyal_gal)\
**Post date:** [July 12, 2024, 2:31pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/3 "2024-07-12T14:31:04Z")

</div>

Thank you!  
How do I change the shape you heard to simple circles with a variable radius that I will define?

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [July 12, 2024, 2:34pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/4 "2024-07-12T14:34:53Z")

</div>

> [@Eyal\_gal](#):
>
> How do I change the shape you heard to simple circles with a variable radius that I will define?

> **7. This is not a _do-my-work-for-me_ group**

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [July 12, 2024, 3:01pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/5 "2024-07-12T15:01:55Z")

</div>

I made a few changes to [the code I referred you to](https://discourse.mcneel.com/t/rotation-problems/164126/12), mostly deletions.

 ![spiral_2024_Jul12a](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/d/7/7d7498aebf6920d98342eac6b75233ac19f4d564.png)

> **3. Attach minimal versions of all the relevant files**

**P.S.** I think it makes more sense to have small circles in the center and big circles “outside”:

 ![spiral_2024_Jul12a2](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/0/f/80f5cd25171c7d23d29c670ee796a9de6af361c0.png)

---

<div class="post-metadata">

**Author:** ![Eyal\_gal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eyal_gal/32/592508_2.png) [@Eyal\_gal](https://discourse.mcneel.com/u/Eyal_gal)\
**Post date:** [July 13, 2024, 1:40pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/6 "2024-07-13T13:40:11Z")

</div>

Thank you very much, I really appreciate your help!  
Another small matter, are there options for the pattern to be like the picture I’m joining?

 ![WhatsApp Image 2024-07-13 at 16.37.15](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/e/1/6e1aeca6d22892c3ec04a8c23c2ed9f159667c45.jpeg)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [July 13, 2024, 2:50pm UTC](https://discourse.mcneel.com/t/grasshopper-pattern/187969/7 "2024-07-13T14:50:20Z")

</div>

> [@Eyal\_gal](#):
>
> Another small matter, are there options for the pattern to be like the picture I’m joining?

No. The abrupt change in your curves looks problematic to me.

Playing with the code, I can see spirals like these.

Partition size = 13:

 ![spiral_2024_Jul13a](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/c/2/9c22750dbc349068a7d1b199e738c5a5ebcc04a6.png)

Partition size = 21:

 ![spiral_2024_Jul13a2](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/2/c/52ce3d4fa577ab93a5f301a09dc00f9d3b0753d2.png)

Partition size = 34:

 ![spiral_2024_Jul13a3](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/d/0/5d0132a0fba086477e38131fcbbb09a442955656.png)

Partition size = 55:

 ![spiral_2024_Jul13a4](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/3/4/1348b1608602020db6264f2c79175515730fab5a.png)

Why these partition sizes? Off hand, I have no idea. There might be others and this code is by no means the only way to achieve your pattern of circles.
