Slight refactoring of color changing made in WaveBackground.