Color detection test code