# Question about changing color over time

**URL:** <https://discourse.processing.org/t/question-about-changing-color-over-time/4093>\
**Category:** Coding Questions\
**Created:** [October 3, 2018, 6:04pm UTC](https://discourse.processing.org/t/question-about-changing-color-over-time/4093 "2018-10-03T18:04:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [October 3, 2018, 6:27pm UTC](https://discourse.processing.org/t/question-about-changing-color-over-time/4093/2 "2018-10-03T18:27:43Z")

</div>

Hi vincentn20,

Can you please format.  
Check out this thread to know how to do it: [Guidelines—Tips on Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147)

Now for your question, I advise you do go have a look to the [mouseClicked()](https://processing.org/reference/mouseClicked_.html) function and the [lerpColor()](https://processing.org/reference/lerpColor_.html) one.

Also I can’t see how your code can work, you miss the basic structure of a processing program.

---

_[View the full topic](https://discourse.processing.org/t/question-about-changing-color-over-time/4093)._
