Thanks. I tried to make the colors linearly interpolate. But the code caused the colors to constantly change.