# \[SOLVED\] Drawing circles inside a circle (generative dandelion)

**URL:** <https://discourse.processing.org/t/solved-drawing-circles-inside-a-circle-generative-dandelion/39197>\
**Category:** Coding Questions\
**Created:** [October 4, 2022, 7:19pm UTC](https://discourse.processing.org/t/solved-drawing-circles-inside-a-circle-generative-dandelion/39197 "2022-10-04T19:19:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 5, 2022, 11:07am UTC](https://discourse.processing.org/t/solved-drawing-circles-inside-a-circle-generative-dandelion/39197/7 "2022-10-05T11:07:28Z")

</div>

Hello @Ties2901,

You may want to consider a 3D approach to the code; the end result will still be 2D on the screen or printed page.

Example:

> [@Place a circle on the surface of a sphere](https://discourse.processing.org/t/place-a-circle-on-the-surface-of-a-sphere/38770/4):
>
> Hello, You should be able to adapt this to p5.js: A translate, a rotate for phi and a rotate for theta and then draw a circle(): slight_smile

There are other ways to do this and I shared mostly for the visual effect.

Each circle in above topic could be a floret\seed head and generated separately; you just make one, add some randomness and transform (translate and rotate) it… then the next one.

You would have to place or pack circles on a sphere as required… this is very achievable.

> [@Ties2901](#):
>
> I wanted to create a for or if loop for drawing the random circles (dotcore) within the main circle (core).

There is definitely order in nature with a touch of randomness:

> **[Taraxacum](https://en.wikipedia.org/wiki/Taraxacum)**
>
> Taraxacum (/təˈræksəkəm/) is a large genus of flowering plants in the family Asteraceae, which consists of species commonly known as dandelions. The scientific and hobby study of the genus is known as taraxacology. The genus is native to Eurasia and North America, but the two most commonplace species worldwide, T. officinale (the common dandelion) and T. erythrospermum (the red-seeded dandelion), were introduced from Europe into North America, where they now propagate as wildflowers. The Like ...

Cool personal challenge!

`:)`

---

_[View the full topic](https://discourse.processing.org/t/solved-drawing-circles-inside-a-circle-generative-dandelion/39197)._
