# I don't know how do that use the loop

**URL:** <https://discourse.processing.org/t/i-dont-know-how-do-that-use-the-loop/25269>\
**Category:** Coding Questions\
**Created:** [November 8, 2020, 1:33am UTC](https://discourse.processing.org/t/i-dont-know-how-do-that-use-the-loop/25269 "2020-11-08T01:33:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoe87](https://avatars.discourse-cdn.com/v4/letter/z/8797f3/32.png) [@zoe87](https://discourse.processing.org/u/zoe87)\
**Post date:** [November 8, 2020, 1:33am UTC](https://discourse.processing.org/t/i-dont-know-how-do-that-use-the-loop/25269/1 "2020-11-08T01:33:27Z")

</div>

I need your help  
I don’t know how to do that use the loop to change the color

![截圖 2020-11-08 上午9.30.26](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/ca8e66b1c4ef09f4a9358a6211824ef66bf2a72a.png)

---

<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:** [November 8, 2020, 8:50am UTC](https://discourse.processing.org/t/i-dont-know-how-do-that-use-the-loop/25269/2 "2020-11-08T08:50:06Z")

</div>

Do you have the positions calculated?

For color look a lerpColor command in the reference and use the variable of your for-loop
