Programming for a colorsorting robot