Add cycle function for color.