code to fade from red to blue based on rotation speed