adding and modifying code to do rgb fading