Changing color of a button

Hi…
I want to change the color of a button when I’m clicking on it from green to pink, with an fade in/out effect.
what is the best way doing that?

Hi .
You can use timer ( ofGetElapsedTimeMillis() )

Or something like ofxEasing https://github.com/arturoc/ofxEasing