Added 'snap' function to disable fading between colors.