# Help on loops (I'm a beginner)

**URL:** <https://discourse.processing.org/t/help-on-loops-im-a-beginner/21155>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [May 22, 2020, 2:21am UTC](https://discourse.processing.org/t/help-on-loops-im-a-beginner/21155 "2020-05-22T02:21:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [May 22, 2020, 4:10am UTC](https://discourse.processing.org/t/help-on-loops-im-a-beginner/21155/2 "2020-05-22T04:10:43Z")

</div>

Hi,

Welcome to the forum.

It’s a bit hard to help you to right direction without your code. Please have a look at [Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147) and include your code.

in general term you need a data structure to store information of your rectangles and a loop where you go though all those rectangles and move them. Data structure like array helps to construct a loop without repetitive code.

---

_[View the full topic](https://discourse.processing.org/t/help-on-loops-im-a-beginner/21155)._
