# How to reset a grid back to white with timer

**URL:** <https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810>\
**Category:** Coding Questions\
**Created:** [May 13, 2020, 3:16am UTC](https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810 "2020-05-13T03:16:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@alex](https://discourse.processing.org/u/alex)\
**Post date:** [May 13, 2020, 3:16am UTC](https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810/1 "2020-05-13T03:16:22Z")

</div>

Hi  
so I have a grid of 5\*5 that I have filled with random colours with each individual mouseClick.  
How do I reset the grid back to white with the next mouseClick? Also how do I use a timer so that the resetting animation of each square can be clearly seen. I don’t know how to execute this.  
Cheers

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [May 13, 2020, 4:33am UTC](https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810/3 "2020-05-13T04:33:31Z")

</div>

Hi alex,

You’re gonna have to be more specific in your question. Posting code and letting us know where exactly you’re running into problems will help others help you better.

Cheers

---

<div class="post-metadata">

**Author:** ![alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@alex](https://discourse.processing.org/u/alex)\
**Post date:** [May 13, 2020, 5:46am UTC](https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810/5 "2020-05-13T05:46:03Z")

</div>

i have figured out how to do it thanks!
