Hi forum,
I am messing around with changing the color of a toggle.
Here's what I want to do:
I want the toggle background color to be updated when I press a certain key on my keyboard. The default color will be white, and when the key is pressed, the toggle will immediately jump to green (in about 5 ms), and then smoothly fade back into white (over about 1000 ms).
So far, I am able to interpolate smoothly between the correct RGB values I need, but the toggle cycles through a bunch of colors first before landing on the correct ones.
Any tips?