Implement color switching.