# I need help recreating an image (rows of circles)

**URL:** <https://discourse.processing.org/t/i-need-help-recreating-an-image-rows-of-circles/42577>\
**Category:** Coding Questions\
**Created:** [August 9, 2023, 3:12am UTC](https://discourse.processing.org/t/i-need-help-recreating-an-image-rows-of-circles/42577 "2023-08-09T03:12:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsociety](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fsociety/32/18666_2.png) [@fsociety](https://discourse.processing.org/u/fsociety)\
**Post date:** [August 9, 2023, 3:12am UTC](https://discourse.processing.org/t/i-need-help-recreating-an-image-rows-of-circles/42577/1 "2023-08-09T03:12:52Z")

</div>

![fd3fb11c-c923-41f8-87a8-6e986b71b391](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/6/06067dab178d04ec017690c239fe6825be109e2e.jpeg)  
i need to reacreate this asap

---

<div class="post-metadata">

**Author:** ![sterretje](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sterretje](https://discourse.processing.org/u/sterretje)\
**Post date:** [August 9, 2023, 7:28am UTC](https://discourse.processing.org/t/i-need-help-recreating-an-image-rows-of-circles/42577/2 "2023-08-09T07:28:17Z")

</div>

The bottom row has 6 circles. Each row up has 3 more circles.

For the bottom row, divide your canvas evenly (for 6 circles) in the horizontal direction and draw 6 circles.  
For the next row up, divide your canvas evenly (for 9 circles) in the horizontal direction and draw 9 circles.  
Etc.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [August 9, 2023, 8:22am UTC](https://discourse.processing.org/t/i-need-help-recreating-an-image-rows-of-circles/42577/3 "2023-08-09T08:22:49Z")

</div>

Yes, nicely spotted

It’s one for loop in the second for loop

- The outer for loop is for the y position and goes backwards (up),
- the inner for loop is for the x position (this for loop has new parameters every time).

---

<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:** [August 13, 2023, 3:47pm UTC](https://discourse.processing.org/t/i-need-help-recreating-an-image-rows-of-circles/42577/4 "2023-08-13T15:47:43Z")

</div>

Nested for() loops will be helpful:

- [for / Reference / Processing.org](https://processing.org/reference/for.html)
- [https://www.youtube.com/watch?v=H7frvcAHXps](https://www.youtube.com/watch?v=H7frvcAHXps)

`:)`
