# Change background in order/ using values in array

**URL:** <https://discourse.processing.org/t/change-background-in-order-using-values-in-array/22665>\
**Category:** Coding Questions\
**Created:** [July 16, 2020, 2:39pm UTC](https://discourse.processing.org/t/change-background-in-order-using-values-in-array/22665 "2020-07-16T14:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![slow\_izzm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/slow_izzm/32/5637_2.png) [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Post date:** [July 16, 2020, 2:47pm UTC](https://discourse.processing.org/t/change-background-in-order-using-values-in-array/22665/3 "2020-07-16T14:47:47Z")

</div>

> [@Sequence of actions from array](https://discourse.processing.org/t/sequence-of-actions-from-array/22480):
>
> Howdy! I want to create a sequence of events as determined by an array, but for some reason, only the last element of the array is accounted for. Also, I would like the actions to occur with a slight delay with respect to each other. The delay() function would not work as it would stop all the program, while I would need the program to keep on running during the delay. Below is some code to make a particular color square according to the integer stored in an array. The only square that seems …

---

_[View the full topic](https://discourse.processing.org/t/change-background-in-order-using-values-in-array/22665)._
